From 3d857d74459b23d2832cc6c428affd448de0320d Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 8 Jan 2026 23:22:07 +0300 Subject: [PATCH] new selector --- themes/day.py | 6 ++++++ themes/night.py | 6 ++++++ ui/main_window_new.py | 2 ++ 3 files changed, 14 insertions(+) diff --git a/themes/day.py b/themes/day.py index b8cc450..95b4b9a 100644 --- a/themes/day.py +++ b/themes/day.py @@ -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; } diff --git a/themes/night.py b/themes/night.py index c1095ee..481a89a 100644 --- a/themes/night.py +++ b/themes/night.py @@ -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; } diff --git a/ui/main_window_new.py b/ui/main_window_new.py index 2ec4e1f..eb35678 100644 --- a/ui/main_window_new.py +++ b/ui/main_window_new.py @@ -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")