Browse Source

REPORT-111549 标签控件设置的字体背景样式等,开启控件增强,之前设置的样式丢了

release/11.0
obo 1 year ago
parent
commit
d1c7169587
  1. 5
      designer-form/src/main/java/com/fr/design/widgettheme/LabelSettingPane.java

5
designer-form/src/main/java/com/fr/design/widgettheme/LabelSettingPane.java

@ -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;

Loading…
Cancel
Save