From 30a30aa5ce90f97ea2c93bc372c0a67c8e3c54c8 Mon Sep 17 00:00:00 2001 From: Tim Schneeberger Date: Sun, 10 Dec 2023 00:11:32 +0100 Subject: [PATCH] fix: fix backwards compat with Qt <6.6 --- src/utils/StyleHelper.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/utils/StyleHelper.cpp b/src/utils/StyleHelper.cpp index 1a84f616..babc1d4a 100644 --- a/src/utils/StyleHelper.cpp +++ b/src/utils/StyleHelper.cpp @@ -121,7 +121,6 @@ QPalette StyleHelper::getDefaultLightPalette() { const QColor button = backGround; const QColor shadow = dark.darker(135); const QColor disabledShadow = shadow.lighter(150); - const QColor disabledHighlight(145, 145, 145); QColor placeholder = text; placeholder.setAlpha(128); @@ -140,11 +139,7 @@ QPalette StyleHelper::getDefaultLightPalette() { fusionPalette.setBrush(QPalette::Active, QPalette::Highlight, highlight); fusionPalette.setBrush(QPalette::Inactive, QPalette::Highlight, highlight); - fusionPalette.setBrush(QPalette::Disabled, QPalette::Highlight, disabledHighlight); - - fusionPalette.setBrush(QPalette::Active, QPalette::Accent, highlight); - fusionPalette.setBrush(QPalette::Inactive, QPalette::Accent, highlight); - fusionPalette.setBrush(QPalette::Disabled, QPalette::Accent, disabledHighlight); + fusionPalette.setBrush(QPalette::Disabled, QPalette::Highlight, QColor(145, 145, 145)); fusionPalette.setBrush(QPalette::PlaceholderText, placeholder);