From cffa8f79ffb4731df4d71ff3b170d38ced40233e Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Tue, 27 May 2025 21:08:24 -0400 Subject: [PATCH] Fix background of theme options QMenu --- NUSGet.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NUSGet.py b/NUSGet.py index 7a3371e..c78122b 100644 --- a/NUSGet.py +++ b/NUSGet.py @@ -131,6 +131,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): # Fix the annoying background on the option menu items and submenus. fixup_qmenu_background(self.ui.menu_options) fixup_qmenu_background(self.ui.menu_options_language) + fixup_qmenu_background(self.ui.menu_options_theme) # Build a QActionGroup so that the language options function like radio buttons, because selecting multiple # languages at once makes no sense. language_group = QActionGroup(self) @@ -166,7 +167,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): case _: self.ui.action_theme_system.setChecked(True) except KeyError: - pass + self.ui.action_theme_system.setChecked(True) # --------- # Help Menu # --------- @@ -658,7 +659,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): msg_box.setStandardButtons(QMessageBox.StandardButton.Ok) msg_box.setDefaultButton(QMessageBox.StandardButton.Ok) msg_box.setWindowTitle(app.translate("MainWindow", "Restart Required")) - msg_box.setText(app.translate("MainWindow", "NUSGet must be restarted for the new language to take effect.")) + msg_box.setText(app.translate("MainWindow", "NUSGet must be restarted for the selected language to take effect.")) msg_box.exec() def change_theme(self, new_theme): @@ -668,7 +669,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): msg_box.setStandardButtons(QMessageBox.StandardButton.Ok) msg_box.setDefaultButton(QMessageBox.StandardButton.Ok) msg_box.setWindowTitle(app.translate("MainWindow", "Restart Required")) - msg_box.setText(app.translate("MainWindow", "NUSGet must be restarted for the new theme to take effect.")) + msg_box.setText(app.translate("MainWindow", "NUSGet must be restarted for the selected theme to take effect.")) msg_box.exec()