From 277c28895296cc3576f22ed3e866f80def63a47e Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Tue, 6 Apr 2021 11:29:55 +0200 Subject: [PATCH] IntelliJ Themes: fixed system colors --- CHANGELOG.md | 1 + .../flatlaf/IntelliJTheme$ThemeLaf.properties | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8336cca..c85b5392 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ FlatLaf Change Log background is enabled. - IntelliJ Themes: Fixed window title bar background if unified background is enabled. +- IntelliJ Themes: Fixed system colors. - Button and ToggleButton: Do not paint background of disabled (and unselected) toolBar buttons. (issue #292; regression since fixing #112) - SplitPane: `JSplitPane.setContinuousLayout(false)` did not work. (issue #301) diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/IntelliJTheme$ThemeLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/IntelliJTheme$ThemeLaf.properties index 25474bc1..d3082470 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/IntelliJTheme$ThemeLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/IntelliJTheme$ThemeLaf.properties @@ -24,8 +24,24 @@ #---- system colors ---- -# fix system colors because they are usually not set in .json files +# fix (most) system colors because they are usually not set in .json files +desktop = lazy(TextField.background) +activeCaptionText = lazy(TextField.foreground) +inactiveCaptionText = lazy(TextField.foreground) +window = lazy(Panel.background) +windowBorder = lazy(TextField.foreground) +windowText = lazy(TextField.foreground) +menu = lazy(Menu.background) +menuText = lazy(Menu.foreground) +text = lazy(TextField.background) +textText = lazy(TextField.foreground) +textHighlight = lazy(TextField.selectionBackground) +textHighlightText = lazy(TextField.selectionForeground) +textInactiveText = lazy(TextField.inactiveForeground) control = lazy(Panel.background) +controlText = lazy(TextField.foreground) +info = lazy(ToolTip.background) +infoText = lazy(ToolTip.foreground) #---- Button ----