Tired and Poor and Old - Radio Panel v0.1.1
This commit is contained in:
@@ -178,6 +178,16 @@ class HistoryWidget(QFrame):
|
||||
self.scroll.setWidget(self.list_widget)
|
||||
root.addWidget(self.scroll)
|
||||
|
||||
def apply_theme(self, theme: dict):
|
||||
"""Apply theme to history border."""
|
||||
self.setStyleSheet(f"""
|
||||
QFrame {{
|
||||
background-color: {theme['bg2']};
|
||||
border: 2px solid {theme['border']};
|
||||
border-radius: 6px;
|
||||
}}
|
||||
""")
|
||||
|
||||
def add_track(self, filepath: str):
|
||||
index = len(self._history) + 1
|
||||
metadata = _read_file_tags(filepath)
|
||||
|
||||
Reference in New Issue
Block a user