|
|
|
@ -34,6 +34,7 @@ public class TemplateThemeListPane<T extends TemplateTheme> extends BasicPane {
|
|
|
|
|
|
|
|
|
|
private final AsyncThemeFetcher<T> asyncThemeFetcher; |
|
|
|
|
|
|
|
|
|
private final boolean displayTheme4NewTemplateMarker; |
|
|
|
|
protected final TemplateThemeConfig<T> config; |
|
|
|
|
private final TemplateThemeProfilePane<T> profilePane; |
|
|
|
|
private final JPanel contentListPane; |
|
|
|
@ -47,7 +48,8 @@ public class TemplateThemeListPane<T extends TemplateTheme> extends BasicPane {
|
|
|
|
|
|
|
|
|
|
private ChangeListener changeListener; |
|
|
|
|
|
|
|
|
|
public TemplateThemeListPane(TemplateThemeConfig<T> config, TemplateThemeProfilePane<T> profilePane) { |
|
|
|
|
public TemplateThemeListPane(boolean displayTheme4NewTemplateMarker, TemplateThemeConfig<T> config, TemplateThemeProfilePane<T> profilePane) { |
|
|
|
|
this.displayTheme4NewTemplateMarker = displayTheme4NewTemplateMarker; |
|
|
|
|
this.config = config; |
|
|
|
|
this.profilePane = profilePane; |
|
|
|
|
this.contentListPane = new JPanel(); |
|
|
|
@ -95,7 +97,7 @@ public class TemplateThemeListPane<T extends TemplateTheme> extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private TemplateThemeBlock<T> createNewTemplateThemeBlock(String name) { |
|
|
|
|
final TemplateThemeBlock<T> block = new TemplateThemeBlock<>(name, config, profilePane); |
|
|
|
|
final TemplateThemeBlock<T> block = new TemplateThemeBlock<>(name, displayTheme4NewTemplateMarker, config, profilePane); |
|
|
|
|
block.addClickListener(new MouseAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|