|
|
|
@ -38,6 +38,11 @@ public class LabelSettingPane<T extends Widget> extends BaseStyleSettingPane<T>
|
|
|
|
|
LabelTheme widgetTheme = (LabelTheme) t.getWidgetTheme(); |
|
|
|
|
if (widgetTheme == null) { |
|
|
|
|
widgetTheme = new LabelTheme(); |
|
|
|
|
Label label = (Label) t; |
|
|
|
|
if (!FRFont.getInstance().equals(label.getFont())) { |
|
|
|
|
widgetTheme.setFollowTheme(false); |
|
|
|
|
widgetTheme.setFontStyle(new FontStyle((label.getFont()))); |
|
|
|
|
} |
|
|
|
|
t.setWidgetTheme(widgetTheme); |
|
|
|
|
} |
|
|
|
|
return widgetTheme; |
|
|
|
|