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