top bar update

This commit is contained in:
Your Name 2026-01-08 02:05:29 +03:00
parent 254fc9e27c
commit 18b7178fe6

View File

@ -32,25 +32,30 @@ class MainWindow(QMainWindow):
# Top bar
self.topbar = QWidget()
self.topbar.setObjectName("TopBar")
self.topbar.setMinimumHeight(72)
top = QHBoxLayout(self.topbar)
top.setContentsMargins(16, 10, 16, 10)
top.setSpacing(10)
top.setContentsMargins(18, 12, 18, 12)
top.setSpacing(12)
self.lbl_time = QLabel("--:--")
self.lbl_time.setFont(QFont("", 16, 600))
self.lbl_time.setFont(QFont("", 20, 700))
chip_bt = QPushButton("BT")
chip_bt.setObjectName("IconChip")
chip_bt.setMinimumSize(QSize(60, 40))
chip_wifi = QPushButton("Wi-Fi")
chip_wifi.setObjectName("IconChip")
chip_wifi.setMinimumSize(QSize(70, 40))
chip_lte = QPushButton("LTE")
chip_lte.setObjectName("IconChip")
chip_lte.setMinimumSize(QSize(60, 40))
self.lbl_vol = QLabel("VOL 45%")
self.lbl_vol.setStyleSheet("color: rgba(138,147,166,0.95); font-size: 14px;")
self.lbl_vol.setStyleSheet("color: rgba(138,147,166,0.95); font-size: 16px;")
self.btn_theme = QPushButton("🌙")
self.btn_theme.setObjectName("IconChip")
self.btn_theme.setMinimumSize(QSize(48, 40))
self.btn_theme.clicked.connect(self.toggle_theme)
top.addWidget(self.lbl_time)