From 68b21b9c389e1b947381fc221d803e782d7a5664 Mon Sep 17 00:00:00 2001 From: Dmugetsu Date: Tue, 25 Mar 2025 23:02:52 -0600 Subject: [PATCH] Clang --- src/qt_gui/main_window_themes.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/qt_gui/main_window_themes.cpp b/src/qt_gui/main_window_themes.cpp index 25ca0921d..9d7892e61 100644 --- a/src/qt_gui/main_window_themes.cpp +++ b/src/qt_gui/main_window_themes.cpp @@ -172,22 +172,23 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) { case Theme::Oled: mw_searchbar->setStyleSheet("QLineEdit:focus {" "border: 1px solid #2A82DA; }"); - themePalette.setColor(QPalette::Window, QColor(0, 0, 0, 0)); + themePalette.setColor(QPalette::Window, Qt::black); themePalette.setColor(QPalette::WindowText, Qt::white); - themePalette.setColor(QPalette::Base, QColor(0, 0, 0, 0)); - themePalette.setColor(QPalette::AlternateBase, QColor(0, 0, 0, 0)); - themePalette.setColor(QPalette::ToolTipBase, QColor(0, 0, 0, 0)); + themePalette.setColor(QPalette::Base, Qt::black); + themePalette.setColor(QPalette::AlternateBase, Qt::black); + themePalette.setColor(QPalette::ToolTipBase, Qt::black); themePalette.setColor(QPalette::ToolTipText, Qt::white); themePalette.setColor(QPalette::Text, Qt::white); - themePalette.setColor(QPalette::Button, QColor(0, 0, 0, 0)); + themePalette.setColor(QPalette::Button, Qt::black); themePalette.setColor(QPalette::ButtonText, Qt::white); themePalette.setColor(QPalette::BrightText, Qt::red); themePalette.setColor(QPalette::Link, QColor(42, 130, 218)); themePalette.setColor(QPalette::Highlight, QColor(42, 130, 218)); - themePalette.setColor(QPalette::HighlightedText, QColor(0, 0, 0, 0)); + themePalette.setColor(QPalette::HighlightedText, Qt::black); qApp->setPalette(themePalette); qApp->setStyleSheet("QLineEdit {" - "background-color: QColor(0, 0, 0, 0); color: QColor(0, 0, 0, 0); border: 1px solid #a0a0a0; " + "background-color: QColor(0, 0, 0, 0); color: QColor(0, 0, 0, 0); " + "border: 1px solid #a0a0a0; " "border-radius: 4px; padding: 5px; }" "QCheckBox::indicator:unchecked {"