Browse Source

Pull request #7539: REPORT-65249 模板主题管理-编辑模板-编辑主题时保存按钮的交互优化

Merge in DESIGN/design from ~STARRYI/design:feature/x to feature/x

* commit '13d419d2a7b00844af7908b9218474f27eba4e9f':
  REPORT-65249 模板主题管理-编辑模板-编辑主题时保存按钮的交互优化
feature/x
starryi 3 years ago
parent
commit
04f72c9d90
  1. 3
      designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeProfilePane.java
  2. 2
      designer-base/src/main/java/com/fr/design/mainframe/theme/dialog/TemplateThemeProfileDialog.java

3
designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeProfilePane.java

@ -206,7 +206,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
}); });
} }
public UIButton createSaveButton() { public UIButton createSaveButton(final TemplateThemeProfileDialog<T> profileDialog) {
saveButton = new UIButton(); saveButton = new UIButton();
saveButton.setText(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_Save")); saveButton.setText(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_Save"));
saveButton.setEnabled(false); saveButton.setEnabled(false);
@ -224,6 +224,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
@Override @Override
public void run() { public void run() {
DesignerToastMsgUtil.toastPrompt(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_Save_Successfully")); DesignerToastMsgUtil.toastPrompt(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_Save_Successfully"));
profileDialog.exit();
} }
}); });
} }

2
designer-base/src/main/java/com/fr/design/mainframe/theme/dialog/TemplateThemeProfileDialog.java

@ -90,7 +90,7 @@ public class TemplateThemeProfileDialog<T extends TemplateTheme> extends Templat
})); }));
} }
uiButtonList.add(profilePane.createSaveButton()); uiButtonList.add(profilePane.createSaveButton(TemplateThemeProfileDialog.this));
uiButtonList.add(profilePane.createSaveAsButton(TemplateThemeProfileDialog.this)); uiButtonList.add(profilePane.createSaveAsButton(TemplateThemeProfileDialog.this));
uiButtonList.add(createCancelButton()); uiButtonList.add(createCancelButton());

Loading…
Cancel
Save