IntelliJ Themes: do not release JSON memory to allow re-using theme instance (issue #1020)
Some checks failed
CI / build (push) Has been cancelled
CI / release (push) Has been cancelled
Error Prone / error-prone (push) Has been cancelled

This commit is contained in:
Karl Tauber
2025-12-03 19:13:07 +01:00
parent 070cf9c40d
commit 4f1e5cdb05
2 changed files with 5 additions and 8 deletions

View File

@@ -32,6 +32,8 @@ FlatLaf Change Log
modal dialogs. (issue #1048) modal dialogs. (issue #1048)
- JideButton, JideToggleButton, JideSplitButton and JideToggleSplitButton: Paint - JideButton, JideToggleButton, JideSplitButton and JideToggleSplitButton: Paint
border in button style `TOOLBAR_STYLE` if in selected state. (issue #1045) border in button style `TOOLBAR_STYLE` if in selected state. (issue #1045)
- IntelliJ Themes: Fixed problem when using theme instance more than once when
switching to that theme. (issue #990)
## 3.6.2 ## 3.6.2

View File

@@ -58,9 +58,9 @@ public class IntelliJTheme
public final boolean dark; public final boolean dark;
public final String author; public final String author;
private Map<String, String> jsonColors; private final Map<String, String> jsonColors;
private Map<String, Object> jsonUI; private final Map<String, Object> jsonUI;
private Map<String, Object> jsonIcons; private final Map<String, Object> jsonIcons;
private Map<String, String> namedColors = Collections.emptyMap(); private Map<String, String> namedColors = Collections.emptyMap();
@@ -276,11 +276,6 @@ public class IntelliJTheme
put( properties, key, value ); put( properties, key, value );
} }
// let Java release memory
jsonColors = null;
jsonUI = null;
jsonIcons = null;
} }
private String get( Properties properties, Map<String, String> themeSpecificProps, String key ) { private String get( Properties properties, Map<String, String> themeSpecificProps, String key ) {