Browse Source

Pull request #14172: REPORT-123532 控件字体样式设置不生效

Merge in DESIGN/design from ~LEO.QIN/design:release/11.0 to release/11.0

* commit 'a8015a37cf166cf92ec35aad03a087cc68ba9903':
  REPORT-123532 控件字体样式设置不生效 【问题原因】设计器端修改字体样式后,没有修改对象中属性值 【改动思路】修改对象属性值
release/11.0
Leo.Qin-覃宇攀 5 months ago
parent
commit
e1bbc436ee
  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