update design dev_screen

This commit is contained in:
Your Name 2026-01-09 05:01:03 +03:00
parent b15631339a
commit d2ace417f3
5 changed files with 8 additions and 2 deletions

View File

@ -69,7 +69,7 @@ class SettingsScreen(QWidget):
self._dev_enabled = build_info.DEV_MODE_ENABLE self._dev_enabled = build_info.DEV_MODE_ENABLE
self._dev_row: SettingsRow | None = None self._dev_row: SettingsRow | None = None
root = QVBoxLayout(self) root = QVBoxLayout(self)
root.setContentsMargins(18, 16, 18, 16) root.setContentsMargins(18, 0, 18, 16)
root.setSpacing(12) root.setSpacing(12)
self.stack = QStackedWidget() self.stack = QStackedWidget()

View File

@ -59,6 +59,7 @@ QMenu::item:selected { background: #F3F4F6; }
#SoundToggleRow QPushButton { background-clip: padding; } #SoundToggleRow QPushButton { background-clip: padding; }
#SoundSliderRow QSlider { background: transparent; } #SoundSliderRow QSlider { background: transparent; }
QScrollArea { background: transparent; } QScrollArea { background: transparent; }
QScrollArea::viewport { background: transparent; }
QScrollArea > QWidget > QWidget { background: transparent; } QScrollArea > QWidget > QWidget { background: transparent; }
#SoundCardTitle { color: rgba(55,65,81,0.9); background: transparent; } #SoundCardTitle { color: rgba(55,65,81,0.9); background: transparent; }
#SoundValue { color: rgba(107,114,128,0.95); background: transparent; } #SoundValue { color: rgba(107,114,128,0.95); background: transparent; }

View File

@ -55,6 +55,7 @@ QMenu::item:selected { background: #1B2330; }
#SoundToggleRow QPushButton { background-clip: padding; } #SoundToggleRow QPushButton { background-clip: padding; }
#SoundSliderRow QSlider { background: transparent; } #SoundSliderRow QSlider { background: transparent; }
QScrollArea { background: transparent; } QScrollArea { background: transparent; }
QScrollArea::viewport { background: transparent; }
QScrollArea > QWidget > QWidget { background: transparent; } QScrollArea > QWidget > QWidget { background: transparent; }
#SoundCardTitle { color: rgba(138,147,166,0.95); background: transparent; } #SoundCardTitle { color: rgba(138,147,166,0.95); background: transparent; }
#SoundValue { color: rgba(138,147,166,0.95); background: transparent; } #SoundValue { color: rgba(138,147,166,0.95); background: transparent; }

View File

@ -1,5 +1,5 @@
from PySide6.QtWidgets import QMainWindow, QWidget, QVBoxLayout, QStackedWidget, QHBoxLayout, QLabel, QPushButton 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 themes import THEME_DAY, THEME_NIGHT
from ui.components.divider import divider from ui.components.divider import divider
from ui.components.nav_button import NavButton from ui.components.nav_button import NavButton
@ -34,6 +34,8 @@ class MainWindow(QMainWindow):
# Top bar # Top bar
self.topbar = QWidget() self.topbar = QWidget()
self.topbar.setObjectName("TopBar") self.topbar.setObjectName("TopBar")
self.topbar.setAttribute(Qt.WA_StyledBackground, True)
self.topbar.setAutoFillBackground(True)
self.topbar.setMinimumHeight(72) self.topbar.setMinimumHeight(72)
top = QHBoxLayout(self.topbar) top = QHBoxLayout(self.topbar)
top.setContentsMargins(18, 12, 18, 12) top.setContentsMargins(18, 12, 18, 12)

View File

@ -37,6 +37,8 @@ class MainWindowNew(QMainWindow):
self.topbar = QWidget() self.topbar = QWidget()
self.topbar.setObjectName("TopBar") self.topbar.setObjectName("TopBar")
self.topbar.setAttribute(Qt.WA_StyledBackground, True)
self.topbar.setAutoFillBackground(True)
self.topbar.setMinimumHeight(86) self.topbar.setMinimumHeight(86)
top = QHBoxLayout(self.topbar) top = QHBoxLayout(self.topbar)
top.setContentsMargins(18, 14, 18, 14) top.setContentsMargins(18, 14, 18, 14)