diff --git a/NUSGet.py b/NUSGet.py index 9ea9079..eb90127 100644 --- a/NUSGet.py +++ b/NUSGet.py @@ -125,6 +125,9 @@ class MainWindow(QMainWindow, Ui_MainWindow): dropdown_delegate = ComboBoxItemDelegate() self.ui.console_select_dropdown.setItemDelegate(dropdown_delegate) self.ui.console_select_dropdown.currentIndexChanged.connect(self.selected_console_changed) + # Fix the annoying background on the help menu items. + self.ui.menuHelp.setWindowFlags(self.ui.menuHelp.windowFlags() | Qt.FramelessWindowHint) + self.ui.menuHelp.setAttribute(Qt.WA_TranslucentBackground) # Title tree loading code. Now powered by Models:tm: wii_model = NUSGetTreeModel(wii_database, root_name="Wii Titles") vwii_model = NUSGetTreeModel(vwii_database, root_name="vWii Titles") diff --git a/resources/style.qss b/resources/style.qss index b2e3428..805f8b9 100644 --- a/resources/style.qss +++ b/resources/style.qss @@ -15,29 +15,38 @@ QMenuBar { } QMenuBar::item:selected { + background-color: rgba(60, 60, 60, 1); + color: white; +} + +QMenuBar::item:pressed { background-color: #1a73e8; + color: white; } QMenu { - background-color: #222222; + background-color: #2b2b2b; border: 1px solid rgba(70, 70, 70, 1); border-radius: 8px; - padding: 6px 10px; - margin: 4px 0px; + padding: 6px 2px; + margin: 4px 0; color: white; } +QMenu::item { + padding: 6px 2px; + margin: 2px; + border-radius: 4px; + background-color: transparent; +} + QMenu::item:selected { background-color: #1a73e8; + color: white; } -QAction { - background-color: #222222; - border: 1px solid rgba(70, 70, 70, 1); - border-radius: 8px; - padding: 6px 10px; - margin: 4px 0px; - color: white; +QMenu::icon { + padding: 4px; } QRadioButton {