Replace text buttons with SVG icons, rebrand to Getting To It
This commit is contained in:
+9
-4
@@ -1,10 +1,14 @@
|
||||
# top_bar_widget.py
|
||||
|
||||
from PySide6.QtWidgets import QFrame, QHBoxLayout, QLabel, QPushButton
|
||||
from PySide6.QtCore import Qt, QTimer, Signal
|
||||
from PySide6.QtCore import Qt, QTimer, Signal, QSize
|
||||
from PySide6.QtGui import QFont
|
||||
from datetime import datetime
|
||||
|
||||
from icons import icon_theme
|
||||
|
||||
from icons import icon_theme
|
||||
|
||||
|
||||
THEMES = [
|
||||
# Dark themes
|
||||
@@ -229,16 +233,17 @@ class TopBarWidget(QFrame):
|
||||
layout.setSpacing(12)
|
||||
|
||||
# Theme cycle button
|
||||
self.theme_btn = QPushButton("◈")
|
||||
self.theme_btn = QPushButton()
|
||||
self.theme_btn.setFixedSize(40, 40)
|
||||
self.theme_btn.setFont(QFont("Arial", 16, QFont.Bold))
|
||||
self.theme_btn.setIconSize(QSize(22, 22))
|
||||
self.theme_btn.setIcon(icon_theme())
|
||||
self.theme_btn.setToolTip("Cycle colour theme")
|
||||
self.theme_btn.clicked.connect(self._cycle_theme)
|
||||
self._style_theme_btn()
|
||||
layout.addWidget(self.theme_btn)
|
||||
|
||||
# Station name
|
||||
self.station_label = QLabel("RADIO PANEL")
|
||||
self.station_label = QLabel("GETTING TO IT")
|
||||
self.station_label.setFont(QFont("Arial", 16, QFont.Bold))
|
||||
self.station_label.setStyleSheet(
|
||||
"color: #444444; background: transparent; border: none;"
|
||||
|
||||
Reference in New Issue
Block a user