From 00ade26624b609038f20bf31d9601821b2fbfd0e Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Tue, 19 Oct 2021 07:16:58 -0600 Subject: [PATCH] decorations: when color scheme has no Header colors, don't ask for them First we check to see if the color scheme has header colors, and if it doesn't, we turn around and ask for them anyway, relying on implicit behavior in kcolorscheme that falls back to Window colors when Header colors are requested but are not present. Instead, let's just ask for Window colors to avoid the run-around and stop relying on implicit behavior. --- src/decorations/decorationpalette.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decorations/decorationpalette.cpp b/src/decorations/decorationpalette.cpp index e5d8385f65..0e78b88d7f 100644 --- a/src/decorations/decorationpalette.cpp +++ b/src/decorations/decorationpalette.cpp @@ -132,8 +132,8 @@ void DecorationPalette::update() KConfigGroup wmConfig(m_colorSchemeConfig, QStringLiteral("WM")); if (!wmConfig.exists()) { - m_palette.active = KColorScheme(QPalette::Normal, KColorScheme::Header, m_colorSchemeConfig); - m_palette.inactive = KColorScheme(QPalette::Inactive, KColorScheme::Header, m_colorSchemeConfig); + m_palette.active = KColorScheme(QPalette::Normal, KColorScheme::Window, m_colorSchemeConfig); + m_palette.inactive = KColorScheme(QPalette::Inactive, KColorScheme::Window, m_colorSchemeConfig); m_legacyPalette.reset(); return; }