From d2ace417f384be7a8d6fc484883107f6f9992093 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 9 Jan 2026 05:01:03 +0300 Subject: [PATCH] update design dev_screen --- screens/settings.py | 2 +- themes/day.py | 1 + themes/night.py | 1 + ui/main_window.py | 4 +++- ui/main_window_new.py | 2 ++ 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/screens/settings.py b/screens/settings.py index a44ab31..8b8c123 100644 --- a/screens/settings.py +++ b/screens/settings.py @@ -69,7 +69,7 @@ class SettingsScreen(QWidget): self._dev_enabled = build_info.DEV_MODE_ENABLE self._dev_row: SettingsRow | None = None root = QVBoxLayout(self) - root.setContentsMargins(18, 16, 18, 16) + root.setContentsMargins(18, 0, 18, 16) root.setSpacing(12) self.stack = QStackedWidget() diff --git a/themes/day.py b/themes/day.py index 50e6d9a..7da4c88 100644 --- a/themes/day.py +++ b/themes/day.py @@ -59,6 +59,7 @@ QMenu::item:selected { background: #F3F4F6; } #SoundToggleRow QPushButton { background-clip: padding; } #SoundSliderRow QSlider { background: transparent; } QScrollArea { background: transparent; } +QScrollArea::viewport { background: transparent; } QScrollArea > QWidget > QWidget { background: transparent; } #SoundCardTitle { color: rgba(55,65,81,0.9); background: transparent; } #SoundValue { color: rgba(107,114,128,0.95); background: transparent; } diff --git a/themes/night.py b/themes/night.py index 9f154ce..8029575 100644 --- a/themes/night.py +++ b/themes/night.py @@ -55,6 +55,7 @@ QMenu::item:selected { background: #1B2330; } #SoundToggleRow QPushButton { background-clip: padding; } #SoundSliderRow QSlider { background: transparent; } QScrollArea { background: transparent; } +QScrollArea::viewport { background: transparent; } QScrollArea > QWidget > QWidget { background: transparent; } #SoundCardTitle { color: rgba(138,147,166,0.95); background: transparent; } #SoundValue { color: rgba(138,147,166,0.95); background: transparent; } diff --git a/ui/main_window.py b/ui/main_window.py index eff8693..3868c0a 100644 --- a/ui/main_window.py +++ b/ui/main_window.py @@ -1,5 +1,5 @@ from PySide6.QtWidgets import QMainWindow, QWidget, QVBoxLayout, QStackedWidget, QHBoxLayout, QLabel, QPushButton -from PySide6.QtCore import QTimer +from PySide6.QtCore import QTimer, Qt from themes import THEME_DAY, THEME_NIGHT from ui.components.divider import divider from ui.components.nav_button import NavButton @@ -34,6 +34,8 @@ class MainWindow(QMainWindow): # Top bar self.topbar = QWidget() self.topbar.setObjectName("TopBar") + self.topbar.setAttribute(Qt.WA_StyledBackground, True) + self.topbar.setAutoFillBackground(True) self.topbar.setMinimumHeight(72) top = QHBoxLayout(self.topbar) top.setContentsMargins(18, 12, 18, 12) diff --git a/ui/main_window_new.py b/ui/main_window_new.py index 42483fb..ec981ce 100644 --- a/ui/main_window_new.py +++ b/ui/main_window_new.py @@ -37,6 +37,8 @@ class MainWindowNew(QMainWindow): self.topbar = QWidget() self.topbar.setObjectName("TopBar") + self.topbar.setAttribute(Qt.WA_StyledBackground, True) + self.topbar.setAutoFillBackground(True) self.topbar.setMinimumHeight(86) top = QHBoxLayout(self.topbar) top.setContentsMargins(18, 14, 18, 14)