From 240b08e55c0a3f5084e02e66cf56bad1635b8e9e Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Tue, 6 Apr 2021 11:04:52 +0200 Subject: [PATCH] IntelliJ Themes: fixed window title bar background if unified background is enabled --- CHANGELOG.md | 6 ++++-- .../com/formdev/flatlaf/IntelliJTheme$ThemeLaf.properties | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e18959c6..a8336cca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,8 +21,10 @@ FlatLaf Change Log - Native window decorations: Removed superfluous pixel-line at top of screen when window is maximized. (issue #296) - Window decorations: Fixed random window title bar background in cases were - background is not filled by custom window/rootpane components and - `TitlePane.unifiedBackground` is `true`. + background is not filled by custom window or root pane components and unified + background is enabled. +- IntelliJ Themes: Fixed window title bar background if unified background is + enabled. - 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 7ab06cf0..25474bc1 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 @@ -22,6 +22,12 @@ # - https://www.formdev.com/flatlaf/how-to-customize/ # +#---- system colors ---- + +# fix system colors because they are usually not set in .json files +control = lazy(Panel.background) + + #---- Button ---- Button.startBackground = $Button.background