Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…lder text does not use the Appearance state
  • Loading branch information
rijckrocket committed May 13, 2024
1 parent 3ad1041 commit ce0a1b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/class/qx/ui/form/AbstractField.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ qx.Class.define("qx.ui.form.AbstractField", {
* Adds the CSS rules needed to style the native placeholder element.
*/
__addPlaceholderRules() {
if (qx.ui.form.AbstractField.__addedPlaceholderRules === ajaxclient.ThemeLoader.getInstance().getCurrentThemeName()) {
const theme = qx.theme.manager.Meta.getInstance().getTheme();
const currentThemeName = theme ? theme.title || theme.name : "";

if (qx.ui.form.AbstractField.__addedPlaceholderRules === currentThemeName) {
return;
}
qx.ui.form.AbstractField.__addedPlaceholderRules = ajaxclient.ThemeLoader.getInstance().getCurrentThemeName();
qx.ui.form.AbstractField.__addedPlaceholderRules = currentThemeName;
var engine = qx.core.Environment.get("engine.name");
var browser = qx.core.Environment.get("browser.name");
var colorManager = qx.theme.manager.Color.getInstance();
Expand Down

0 comments on commit ce0a1b5

Please sign in to comment.