new selector
This commit is contained in:
parent
92a8022261
commit
3d857d7445
@ -12,11 +12,17 @@ QWidget { background: #F4F6F8; color: #111827; }
|
||||
font-weight: 700;
|
||||
}
|
||||
#MenuButton:hover, #SettingsButton:hover { background: #F9FAFB; }
|
||||
QToolButton::menu-indicator { image: none; }
|
||||
QMenu {
|
||||
background: #FFFFFF;
|
||||
color: #111827;
|
||||
border: 1px solid #E5E7EB;
|
||||
}
|
||||
QMenu::item {
|
||||
padding: 18px 26px;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
}
|
||||
QMenu::item:selected { background: #F3F4F6; }
|
||||
|
||||
#SettingsSection { color: rgba(55,65,81,0.9); letter-spacing: 0.5px; }
|
||||
|
||||
@ -11,11 +11,17 @@ QWidget { background: #0B0E11; color: #E6EAF0; }
|
||||
font-weight: 700;
|
||||
}
|
||||
#MenuButton:hover, #SettingsButton:hover { background: #1B2330; }
|
||||
QToolButton::menu-indicator { image: none; }
|
||||
QMenu {
|
||||
background: #0F1318;
|
||||
color: #E6EAF0;
|
||||
border: 1px solid #1B2330;
|
||||
}
|
||||
QMenu::item {
|
||||
padding: 18px 26px;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
}
|
||||
QMenu::item:selected { background: #1B2330; }
|
||||
|
||||
#SettingsSection { color: rgba(138,147,166,0.95); letter-spacing: 0.5px; }
|
||||
|
||||
@ -45,8 +45,10 @@ class MainWindowNew(QMainWindow):
|
||||
self.menu_button.setText("▼")
|
||||
self.menu_button.setPopupMode(QToolButton.InstantPopup)
|
||||
self.menu_button.setCursor(Qt.PointingHandCursor)
|
||||
self.menu_button.setMinimumSize(64, 48)
|
||||
|
||||
menu = QMenu(self.menu_button)
|
||||
menu.setMinimumWidth(340)
|
||||
self.menu_button.setMenu(menu)
|
||||
self.act_media = menu.addAction("Media")
|
||||
self.act_car = menu.addAction("Car")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user