diff --git a/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopAbstractComponent.java b/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopAbstractComponent.java index 7168037fa9..a05557de58 100644 --- a/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopAbstractComponent.java +++ b/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopAbstractComponent.java @@ -57,6 +57,8 @@ public abstract class DesktopAbstractComponent protected String debugId; + protected String styleName; + protected C getImpl() { return impl; } @@ -236,13 +238,14 @@ public abstract class DesktopAbstractComponent @Override public String getStyleName() { - return null; + return styleName; } @Override public void setStyleName(String name) { DesktopTheme theme = App.getInstance().getTheme(); if (theme != null) { + this.styleName = name; theme.applyStyle(this, name); } }