|
|
|
@ -12,6 +12,7 @@ import com.fr.design.layout.FRGUIPaneFactory;
|
|
|
|
|
import com.fr.design.mainframe.theme.TemplateThemeListPane; |
|
|
|
|
import com.fr.design.mainframe.theme.ui.BorderUtils; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
@ -26,7 +27,8 @@ import java.awt.event.ActionListener;
|
|
|
|
|
* @version 1.0 |
|
|
|
|
* Created by Starryi on 2021/8/13 |
|
|
|
|
*/ |
|
|
|
|
public class TemplateThemeUsingDialog<T extends TemplateTheme> extends TemplateThemeDialog { |
|
|
|
|
public class
|
|
|
|
|
TemplateThemeUsingDialog<T extends TemplateTheme> extends TemplateThemeDialog { |
|
|
|
|
public static final int CONTENT_WIDTH = 660; |
|
|
|
|
public static final int CONTENT_HEIGHT = 515; |
|
|
|
|
|
|
|
|
@ -107,19 +109,18 @@ public class TemplateThemeUsingDialog<T extends TemplateTheme> extends TemplateT
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private UIButton createOpenThemeManagerButton() { |
|
|
|
|
if (DesignModeContext.isAuthorityEditing()) { |
|
|
|
|
// 权限编辑模式下,不显示打开主题管理对话框的按钮
|
|
|
|
|
return null; |
|
|
|
|
if (WorkContext.getCurrent().isRoot()) { |
|
|
|
|
UIButton button = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Manager_Dialog_Title")); |
|
|
|
|
button.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
TemplateThemeManageDialog dialog = new TemplateThemeManageDialog(TemplateThemeUsingDialog.this); |
|
|
|
|
dialog.setVisible(true); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return button; |
|
|
|
|
} |
|
|
|
|
UIButton button = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Manager_Dialog_Title")); |
|
|
|
|
button.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
TemplateThemeManageDialog dialog = new TemplateThemeManageDialog(TemplateThemeUsingDialog.this); |
|
|
|
|
dialog.setVisible(true); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return button; |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private UIButton createUsingCurrentThemeButton() { |
|
|
|
|