forked from NinjaCheetah/NUSGet
Help menu style now based on dropdown style
This commit is contained in:
parent
bc8592178c
commit
69299ad956
@ -125,6 +125,9 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||||||
dropdown_delegate = ComboBoxItemDelegate()
|
dropdown_delegate = ComboBoxItemDelegate()
|
||||||
self.ui.console_select_dropdown.setItemDelegate(dropdown_delegate)
|
self.ui.console_select_dropdown.setItemDelegate(dropdown_delegate)
|
||||||
self.ui.console_select_dropdown.currentIndexChanged.connect(self.selected_console_changed)
|
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:
|
# Title tree loading code. Now powered by Models:tm:
|
||||||
wii_model = NUSGetTreeModel(wii_database, root_name="Wii Titles")
|
wii_model = NUSGetTreeModel(wii_database, root_name="Wii Titles")
|
||||||
vwii_model = NUSGetTreeModel(vwii_database, root_name="vWii Titles")
|
vwii_model = NUSGetTreeModel(vwii_database, root_name="vWii Titles")
|
||||||
|
@ -15,29 +15,38 @@ QMenuBar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QMenuBar::item:selected {
|
QMenuBar::item:selected {
|
||||||
|
background-color: rgba(60, 60, 60, 1);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenuBar::item:pressed {
|
||||||
background-color: #1a73e8;
|
background-color: #1a73e8;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
QMenu {
|
QMenu {
|
||||||
background-color: #222222;
|
background-color: #2b2b2b;
|
||||||
border: 1px solid rgba(70, 70, 70, 1);
|
border: 1px solid rgba(70, 70, 70, 1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 6px 10px;
|
padding: 6px 2px;
|
||||||
margin: 4px 0px;
|
margin: 4px 0;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMenu::item {
|
||||||
|
padding: 6px 2px;
|
||||||
|
margin: 2px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
QMenu::item:selected {
|
QMenu::item:selected {
|
||||||
background-color: #1a73e8;
|
background-color: #1a73e8;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
QAction {
|
QMenu::icon {
|
||||||
background-color: #222222;
|
padding: 4px;
|
||||||
border: 1px solid rgba(70, 70, 70, 1);
|
|
||||||
border-radius: 8px;
|
|
||||||
padding: 6px 10px;
|
|
||||||
margin: 4px 0px;
|
|
||||||
color: white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QRadioButton {
|
QRadioButton {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user