diff --git a/src/qt_gui/main_window.cpp b/src/qt_gui/main_window.cpp index 8785535ff..94832c6d5 100644 --- a/src/qt_gui/main_window.cpp +++ b/src/qt_gui/main_window.cpp @@ -978,7 +978,7 @@ void MainWindow::SetLastUsedTheme() { case Theme::System: ui->setThemeSystem->setChecked(true); bool isSystemDarkMode; - #ifdef __linux__ +#ifdef __linux__ const QPalette defaultPalette; const auto text = defaultPalette.color(QPalette::WindowText); const auto window = defaultPalette.color(QPalette::Window); @@ -987,13 +987,13 @@ void MainWindow::SetLastUsedTheme() { } else { isSystemDarkMode = false; } - #else +#else if (QGuiApplication::styleHints()->colorScheme() == Qt::ColorScheme::Dark) { isSystemDarkMode = true; } else { isSystemDarkMode = false; } - #endif +#endif if (isSystemDarkMode = true) { isIconBlack = false; SetUiIcons(false); diff --git a/src/qt_gui/main_window_ui.h b/src/qt_gui/main_window_ui.h index 5f261ef55..7cbe0bb4b 100644 --- a/src/qt_gui/main_window_ui.h +++ b/src/qt_gui/main_window_ui.h @@ -379,8 +379,7 @@ public: setThemeBlue->setText(QCoreApplication::translate("MainWindow", "Blue", nullptr)); setThemeViolet->setText(QCoreApplication::translate("MainWindow", "Violet", nullptr)); setThemeGruvbox->setText("Gruvbox"); - setThemeSystem->setText( - QCoreApplication::translate("MainWindow", "System", nullptr)); + setThemeSystem->setText(QCoreApplication::translate("MainWindow", "System", nullptr)); toolBar->setWindowTitle(QCoreApplication::translate("MainWindow", "toolBar", nullptr)); } // retranslateUi };