From 88ee5c678ccf6711ea9eba93b81b4767b5573846 Mon Sep 17 00:00:00 2001 From: tomboylover93 <95257311+tomboylover93@users.noreply.github.com> Date: Fri, 20 Dec 2024 21:52:54 -0300 Subject: [PATCH] clang-format: Update qt_gui/main_window.cpp and qt_gui/main_window.h --- src/qt_gui/main_window.cpp | 6 +++--- src/qt_gui/main_window_ui.h | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) 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 };