Replace text buttons with SVG icons, rebrand to Getting To It
This commit is contained in:
+13
-5
@@ -13,9 +13,11 @@ from PySide6.QtWidgets import (
|
||||
QLineEdit, QFormLayout, QDialogButtonBox,
|
||||
QFileDialog
|
||||
)
|
||||
from PySide6.QtCore import Qt, Signal
|
||||
from PySide6.QtCore import Qt, Signal, QSize
|
||||
from PySide6.QtGui import QFont
|
||||
|
||||
from icons import icon_plus, icon_delete, icon_export
|
||||
|
||||
musicbrainzngs.set_useragent("RadioPanel", "1.0", "radio@panel.local")
|
||||
|
||||
|
||||
@@ -111,13 +113,13 @@ class HistoryEntry(QFrame):
|
||||
|
||||
root.addLayout(text_col, stretch=1)
|
||||
|
||||
self._del_btn = QPushButton("✕")
|
||||
self._del_btn = QPushButton()
|
||||
self._del_btn.setFixedSize(24, 24)
|
||||
self._del_btn.setFont(QFont("Arial", 10, QFont.Bold))
|
||||
self._del_btn.setIconSize(QSize(14, 14))
|
||||
self._del_btn.setIcon(icon_delete("#ff4444"))
|
||||
self._del_btn.setStyleSheet("""
|
||||
QPushButton {
|
||||
background-color: #5a1a1a;
|
||||
color: #ff4444;
|
||||
border: 1px solid #444;
|
||||
border-radius: 12px;
|
||||
}
|
||||
@@ -243,8 +245,10 @@ class HistoryWidget(QFrame):
|
||||
bar = QHBoxLayout()
|
||||
bar.setSpacing(4)
|
||||
|
||||
self._add_btn = QPushButton("+ ADD")
|
||||
self._add_btn = QPushButton("ADD")
|
||||
self._add_btn.setFixedHeight(28)
|
||||
self._add_btn.setIconSize(QSize(16, 16))
|
||||
self._add_btn.setIcon(icon_plus("#00ff41"))
|
||||
self._add_btn.setFont(QFont("Arial", 9, QFont.Bold))
|
||||
self._add_btn.setStyleSheet("""
|
||||
QPushButton {
|
||||
@@ -298,6 +302,8 @@ class HistoryWidget(QFrame):
|
||||
|
||||
self._export_txt_btn = QPushButton("EXPORT TXT")
|
||||
self._export_txt_btn.setFixedHeight(28)
|
||||
self._export_txt_btn.setIconSize(QSize(16, 16))
|
||||
self._export_txt_btn.setIcon(icon_export("#aaaaaa"))
|
||||
self._export_txt_btn.setFont(QFont("Arial", 9, QFont.Bold))
|
||||
self._export_txt_btn.setStyleSheet("""
|
||||
QPushButton {
|
||||
@@ -313,6 +319,8 @@ class HistoryWidget(QFrame):
|
||||
|
||||
self._export_csv_btn = QPushButton("EXPORT CSV")
|
||||
self._export_csv_btn.setFixedHeight(28)
|
||||
self._export_csv_btn.setIconSize(QSize(16, 16))
|
||||
self._export_csv_btn.setIcon(icon_export("#aaaaaa"))
|
||||
self._export_csv_btn.setFont(QFont("Arial", 9, QFont.Bold))
|
||||
self._export_csv_btn.setStyleSheet("""
|
||||
QPushButton {
|
||||
|
||||
Reference in New Issue
Block a user