Help menu style now based on dropdown style

This commit is contained in:
Campbell 2025-05-11 23:20:57 -04:00
parent bc8592178c
commit 69299ad956
Signed by: NinjaCheetah
GPG Key ID: B547958AF96ED344
2 changed files with 22 additions and 10 deletions

View File

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

View File

@ -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 {