clang-format: Update qt_gui/main_window.cpp and qt_gui/main_window.h

This commit is contained in:
tomboylover93 2024-12-20 21:52:54 -03:00
parent b6f5751b23
commit 88ee5c678c
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -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
};