|
|
|
@ -90,6 +90,8 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
private UIButton saveButton = new UIButton(); |
|
|
|
|
private UIButton saveAsButton = new UIButton(); |
|
|
|
|
|
|
|
|
|
private boolean refreshingThemedColor = false; |
|
|
|
|
|
|
|
|
|
private boolean currentIsNewTheme; |
|
|
|
|
private T theme; |
|
|
|
|
|
|
|
|
@ -265,8 +267,13 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
colorListPane.addColorChangeListener(new ChangeListener() { |
|
|
|
|
@Override |
|
|
|
|
public void stateChanged(ChangeEvent e) { |
|
|
|
|
if (refreshingThemedColor) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
List<Color> colors = colorListPane.update(); |
|
|
|
|
refreshingThemedColor = true; |
|
|
|
|
onColorSchemeChanged(colors); |
|
|
|
|
refreshingThemedColor = false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -310,13 +317,10 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
public void onColorSchemeChanged(List<Color> colors) { |
|
|
|
|
colorListExtendedPane.populate(colors); |
|
|
|
|
FineColorManager.FineColorReplaceByColorScheme replaceByColorScheme = new FineColorManager.FineColorReplaceByColorScheme(colors); |
|
|
|
|
ThemedCellStyleList cellStyle = cellStyleSettingPane.updateBean(); |
|
|
|
|
FineColorManager.traverse(cellStyle, replaceByColorScheme); |
|
|
|
|
T theme = updateBean(); |
|
|
|
|
|
|
|
|
|
ThemedChartStyle themedChartStyle = chartStyleSettingPane.updateBean(); |
|
|
|
|
FineColorManager.traverse(themedChartStyle, replaceByColorScheme); |
|
|
|
|
chartStyleSettingPane.populateBean(themedChartStyle); |
|
|
|
|
chartStyleSettingPane.populateGradientBar(colors); |
|
|
|
|
FineColorManager.traverse(theme, replaceByColorScheme); |
|
|
|
|
populateBean(theme); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void populateBean(T theme) { |
|
|
|
|