Browse Source

REPORT-123532 控件字体样式设置不生效

【问题原因】设计器端修改字体样式后,没有修改对象中属性值
【改动思路】修改对象属性值
release/11.0
Leo.Qin 6 months ago
parent
commit
a8015a37cf
  1. 2
      designer-form/src/main/java/com/fr/design/widgettheme/ParaEditorSettingPane.java

2
designer-form/src/main/java/com/fr/design/widgettheme/ParaEditorSettingPane.java

@ -41,6 +41,7 @@ public class ParaEditorSettingPane<T extends Widget> extends EditorSettingPane<T
fontColorButton.setColor(textStyle.getFontColor());
bold.setSelected(textStyle.isBold());
italic.setSelected(textStyle.isItalic());
fontNameSelectBox.setSelectedItem(textStyle.getName());
}
@Override
@ -51,6 +52,7 @@ public class ParaEditorSettingPane<T extends Widget> extends EditorSettingPane<T
textStyle.setFontColor(fontColorButton.getColor());
textStyle.setBold(bold.isSelected());
textStyle.setItalic(italic.isSelected());
textStyle.setName((String) fontNameSelectBox.getSelectedItem());
paraEditorTheme.setTextStyle(textStyle);
}

Loading…
Cancel
Save