Skip to content

Commit

Permalink
Ensure background colour for warn label in folder wizard is the corre…
Browse files Browse the repository at this point in the history
…ct colour

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Sep 14, 2023
1 parent ac7d379 commit e717d2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/folderwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ void FolderWizardLocalPath::changeEvent(QEvent *e)

void FolderWizardLocalPath::changeStyle()
{
const auto warnYellow = Theme::isDarkColor(QGuiApplication::palette().base().color()) ? QColor(63, 63, 0) : QColor(255, 255, 192);
const auto warnYellow = Theme::instance()->darkMode() ? QColor(63, 63, 0) : QColor(255, 255, 192);
auto modifiedPalette = _ui.warnLabel->palette();
modifiedPalette.setColor(QPalette::Window, warnYellow);
modifiedPalette.setColor(QPalette::Base, warnYellow);
_ui.warnLabel->setPalette(modifiedPalette);
}

Expand Down

0 comments on commit e717d2e

Please sign in to comment.