|
|
@ -22,8 +22,6 @@ import com.fr.design.menu.ToolBarDef; |
|
|
|
import com.fr.general.IOUtils; |
|
|
|
import com.fr.general.IOUtils; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.third.checkerframework.checker.nullness.qual.Nullable; |
|
|
|
|
|
|
|
import com.fr.third.guava.util.concurrent.FutureCallback; |
|
|
|
|
|
|
|
import com.fr.transaction.Configurations; |
|
|
|
import com.fr.transaction.Configurations; |
|
|
|
import com.fr.transaction.WorkerFacade; |
|
|
|
import com.fr.transaction.WorkerFacade; |
|
|
|
|
|
|
|
|
|
|
@ -138,7 +136,7 @@ public class TemplateThemeManagePane<T extends TemplateTheme> extends BasicPane |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
T currentTheme4NewTemplate = config.getTheme4NewTemplate(); |
|
|
|
T currentTheme4NewTemplate = config.cachedFetchTheme4NewTemplate(); |
|
|
|
if (currentTheme4NewTemplate == null) { |
|
|
|
if (currentTheme4NewTemplate == null) { |
|
|
|
setTheme4NewTemplateButton.setEnabled(true); |
|
|
|
setTheme4NewTemplateButton.setEnabled(true); |
|
|
|
return; |
|
|
|
return; |
|
|
@ -171,7 +169,7 @@ public class TemplateThemeManagePane<T extends TemplateTheme> extends BasicPane |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
T style = themeListPane.getSelectedTheme(); |
|
|
|
T style = themeListPane.getSelectedTheme(); |
|
|
|
if (style != null) { |
|
|
|
if (style != null) { |
|
|
|
config.setTheme4NewTemplate(style.getName()); |
|
|
|
config.setThemeName4NewTemplate(style.getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -190,8 +188,8 @@ public class TemplateThemeManagePane<T extends TemplateTheme> extends BasicPane |
|
|
|
MenuDef menuDef = new MenuDef(Toolkit.i18nText("Fine-Design_Basic_Action_Add")); |
|
|
|
MenuDef menuDef = new MenuDef(Toolkit.i18nText("Fine-Design_Basic_Action_Add")); |
|
|
|
menuDef.setIconPath(IconPathConstants.ADD_POPMENU_ICON_PATH); |
|
|
|
menuDef.setIconPath(IconPathConstants.ADD_POPMENU_ICON_PATH); |
|
|
|
menuDef.setRePaint(true); |
|
|
|
menuDef.setRePaint(true); |
|
|
|
menuDef.addShortCut(new AddThemeAction(Toolkit.i18nText("Fine-Design_Template_Theme_Manager_Pane_Create_Light_Theme"), config.getLightTheme4New())); |
|
|
|
menuDef.addShortCut(new AddThemeAction(Toolkit.i18nText("Fine-Design_Template_Theme_Manager_Pane_Create_Light_Theme"), config.cachedFetchLightTheme4New())); |
|
|
|
menuDef.addShortCut(new AddThemeAction(Toolkit.i18nText("Fine-Design_Template_Theme_Manager_Pane_Create_Dark_Theme"), config.getDarkTheme4New())); |
|
|
|
menuDef.addShortCut(new AddThemeAction(Toolkit.i18nText("Fine-Design_Template_Theme_Manager_Pane_Create_Dark_Theme"), config.cachedFetchDarkTheme4New())); |
|
|
|
|
|
|
|
|
|
|
|
return menuDef; |
|
|
|
return menuDef; |
|
|
|
} |
|
|
|
} |
|
|
|