Skip to content

Commit

Permalink
fix: fix backwards compat with Qt <6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Dec 9, 2023
1 parent c8c9d0e commit 30a30aa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/utils/StyleHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 30a30aa

Please sign in to comment.