diff --git a/designer-form/src/main/java/com/fr/design/widgettheme/ParaButtonSettingPane.java b/designer-form/src/main/java/com/fr/design/widgettheme/ParaButtonSettingPane.java index 620af9a80e..7f656a4bfa 100644 --- a/designer-form/src/main/java/com/fr/design/widgettheme/ParaButtonSettingPane.java +++ b/designer-form/src/main/java/com/fr/design/widgettheme/ParaButtonSettingPane.java @@ -38,6 +38,7 @@ public class ParaButtonSettingPane extends ButtonSettingPane extends ButtonSettingPane extends TreeEditorS ThemeTextStyle textStyle = widgetTheme.getTextStyle(); fontSizePane.setValue(textStyle.getFontSize()); fontColorButton.setColor(textStyle.getFontColor()); + fontNameSelectBox.setSelectedItem(textStyle.getName()); } @Override @@ -43,6 +44,7 @@ public class ParaTreeEditorSettingPane extends TreeEditorS ThemeTextStyle textStyle = new ThemeTextStyle(); textStyle.setFontSize(fontSizePane.getValue()); textStyle.setFontColor(fontColorButton.getColor()); + textStyle.setName((String) fontNameSelectBox.getSelectedItem()); widgetTheme.setTextStyle(textStyle); } }