diff --git a/src/qt_gui/main_window.cpp b/src/qt_gui/main_window.cpp index cabb7baa2..0862bfe6f 100644 --- a/src/qt_gui/main_window.cpp +++ b/src/qt_gui/main_window.cpp @@ -996,10 +996,10 @@ void MainWindow::SetLastUsedTheme() { isSystemDarkMode = false; } #endif - if (isSystemDarkMode = true) { + if (isSystemDarkMode == true) { isIconBlack = false; SetUiIcons(false); - } else if (isSystemDarkMode = false) { + } else if (isSystemDarkMode == false) { isIconBlack = true; SetUiIcons(true); } @@ -1169,7 +1169,6 @@ bool MainWindow::eventFilter(QObject* obj, QEvent* event) { } if (event->type() == QEvent::ApplicationPaletteChange) { if (ui->setThemeSystem->isChecked()) { - bool isSystemDarkMode; #ifdef __linux__ diff --git a/src/qt_gui/settings_dialog.cpp b/src/qt_gui/settings_dialog.cpp index 1cfae7210..9ed07e1fd 100644 --- a/src/qt_gui/settings_dialog.cpp +++ b/src/qt_gui/settings_dialog.cpp @@ -195,7 +195,7 @@ SettingsDialog::SettingsDialog(std::span physical_devices, QWidge ui->updaterGroupBox->installEventFilter(this); #endif ui->GUIgroupBox->installEventFilter(this); - ui->widgetGroupBox->installEventFilter(this); + ui->widgetComboBox->installEventFilter(this); // Input ui->hideCursorGroupBox->installEventFilter(this); @@ -401,8 +401,8 @@ void SettingsDialog::updateNoteTextEdit(const QString& elementName) { #endif } else if (elementName == "GUIgroupBox") { text = tr("GUIgroupBox"); - } else if (elementName == "widgetGroupBox") { - text = tr("widgetGroupBox"); + } else if (elementName == "widgetComboBox") { + text = tr("widgetComboBox"); } // Input diff --git a/src/qt_gui/settings_dialog.ui b/src/qt_gui/settings_dialog.ui index 9b1c1f5ba..988264c46 100644 --- a/src/qt_gui/settings_dialog.ui +++ b/src/qt_gui/settings_dialog.ui @@ -12,7 +12,7 @@ 0 0 854 - 660 + 834 @@ -59,9 +59,9 @@ 0 - 0 - 822 - 554 + -97 + 815 + 618 @@ -296,152 +296,152 @@ 0 - - - - - - - 0 - 0 - - - - - 275 - 0 - - - - - 16777215 - 16777215 - - - - Update - - - - 5 - - - 1 - - - 11 - - - 11 - - - - - - 0 - 0 - + + + + + 0 + 0 + + + + + 275 + 0 + + + + + 16777215 + 16777215 + + + + Update + + + + 5 - - - 0 - 75 - + + 1 - - - 16777215 - 16777215 - + + 11 - - Update Channel + + 11 - - - 7 - - - 11 - - - 11 - - - 11 - - - 11 - - - - - - 0 - 0 - + + + + + 0 + 0 + + + + + 0 + 75 + + + + + 16777215 + 16777215 + + + + Update Channel + + + + 7 + + + 11 + + + 11 + + + 11 + + + 11 - - Release - + + + + 0 + 0 + + + + + Release + + + + + Nightly + + + - - - Nightly - - - - - - - - - - - - 0 - 0 - - - - - 197 - 28 - - - - - 16777215 - 16777215 - - - - Check for Updates - - - - - - - - 0 - 0 - - - - - 11 - false - - - - Check for Updates at Startup - - - - - + + + + + + + + 0 + 0 + + + + + 197 + 28 + + + + + 16777215 + 16777215 + + + + Check for Updates + + + + + + + + 0 + 0 + + + + + 11 + false + + + + Check for Updates at Startup + + + + + + + @@ -469,6 +469,81 @@ 11 + + + + + 0 + 0 + + + + + 0 + 75 + + + + + 16777215 + 16777215 + + + + Current Widget Style + + + + + + true + + + + 0 + 0 + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 0 + 0 + + + + + Fusion + + + + + System + + + + + + + + + + + Disable Trophy Pop-ups + + + @@ -561,142 +636,25 @@ - - - - - 0 - 61 - - - - - + - - - - 0 - 0 - + + + Qt::Orientation::Horizontal - + - 275 - 0 + 40 + 20 - - - 16777215 - 16777215 - - - - Widget Style - - - - 5 - - - 1 - - - 11 - - - 11 - - - - - - 0 - 0 - - - - - 0 - 75 - - - - - 16777215 - 16777215 - - - - Current Widget Style - - - - - - true - - - - 0 - 0 - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 0 - 0 - - - - - Fusion - - - - - System - - - - - - - - - - - Qt::Orientation::Horizontal - - - - 40 - 20 - - - - - - + @@ -803,7 +761,7 @@ 5 - + true @@ -1235,8 +1193,8 @@ - 6 - 32 + 0 + 20 401 331 @@ -1246,9 +1204,9 @@ 100 - 380 + 360 91 - 42 + 24 @@ -1259,9 +1217,9 @@ 199 - 380 + 360 91 - 42 + 24 diff --git a/src/qt_gui/translations/en.ts b/src/qt_gui/translations/en.ts index ef1de019e..6e85f8aed 100644 --- a/src/qt_gui/translations/en.ts +++ b/src/qt_gui/translations/en.ts @@ -1203,7 +1203,7 @@ - widgetGroupBox + widgetComboBox Widget Styles:\nChoose the widget style to be applied at startup. Defaults to Fusion. "System" uses your system's widget style (Breeze, Oxygen, Kvantum etc). Requires an app restart to apply.