From 942e5b9cd10081dd91f20116ab23f32e2f74e7d1 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Tue, 12 Oct 2021 22:29:38 +0200 Subject: [PATCH] IntelliJ Themes: do not ignore UI keys prefixed with `[style]` to allow using styles --- .../src/main/java/com/formdev/flatlaf/IntelliJTheme.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/IntelliJTheme.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/IntelliJTheme.java index 5e2f7bdf..ce600309 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/IntelliJTheme.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/IntelliJTheme.java @@ -249,7 +249,7 @@ public class IntelliJTheme // search for theme specific UI defaults keys ArrayList themeSpecificKeys = new ArrayList<>(); for( Object key : defaults.keySet() ) { - if( key instanceof String && ((String)key).startsWith( "[" ) ) + if( key instanceof String && ((String)key).startsWith( "[" ) && !((String)key).startsWith( "[style]" ) ) themeSpecificKeys.add( (String) key ); }