Show red start in tab of templates
This commit is contained in:
parent
68bdff53cf
commit
911859ef49
@ -31,7 +31,6 @@ class Config(object):
|
|||||||
COLOUR_NORMAL_TAB = "#000000"
|
COLOUR_NORMAL_TAB = "#000000"
|
||||||
COLOUR_NOTES_PLAYLIST = "#b8daff"
|
COLOUR_NOTES_PLAYLIST = "#b8daff"
|
||||||
COLOUR_ODD_PLAYLIST = "#f2f2f2"
|
COLOUR_ODD_PLAYLIST = "#f2f2f2"
|
||||||
COLOUR_TEMPLATE_ROW = "#FFAF68"
|
|
||||||
COLOUR_UNREADABLE = "#dc3545"
|
COLOUR_UNREADABLE = "#dc3545"
|
||||||
COLOUR_WARNING_TIMER = "#ffc107"
|
COLOUR_WARNING_TIMER = "#ffc107"
|
||||||
DBFS_SILENCE = -50
|
DBFS_SILENCE = -50
|
||||||
@ -96,6 +95,7 @@ class Config(object):
|
|||||||
PLAY_SETTLE = 500000
|
PLAY_SETTLE = 500000
|
||||||
PLAYLIST_ICON_CURRENT = ":/icons/green-circle.png"
|
PLAYLIST_ICON_CURRENT = ":/icons/green-circle.png"
|
||||||
PLAYLIST_ICON_NEXT = ":/icons/yellow-circle.png"
|
PLAYLIST_ICON_NEXT = ":/icons/yellow-circle.png"
|
||||||
|
PLAYLIST_ICON_TEMPLATE = ":/icons/redstar.png"
|
||||||
PREVIEW_ADVANCE_MS = 5000
|
PREVIEW_ADVANCE_MS = 5000
|
||||||
PREVIEW_BACK_MS = 5000
|
PREVIEW_BACK_MS = 5000
|
||||||
PREVIEW_END_BUFFER_MS = 1000
|
PREVIEW_END_BUFFER_MS = 1000
|
||||||
|
|||||||
@ -2196,6 +2196,10 @@ class Window(QMainWindow):
|
|||||||
self.playlist_section.tabPlaylist.setTabIcon(
|
self.playlist_section.tabPlaylist.setTabIcon(
|
||||||
idx, QIcon(Config.PLAYLIST_ICON_CURRENT)
|
idx, QIcon(Config.PLAYLIST_ICON_CURRENT)
|
||||||
)
|
)
|
||||||
|
elif self.playlist_section.tabPlaylist.widget(idx).model().sourceModel().is_template:
|
||||||
|
self.playlist_section.tabPlaylist.setTabIcon(
|
||||||
|
idx, QIcon(Config.PLAYLIST_ICON_TEMPLATE)
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
self.playlist_section.tabPlaylist.setTabIcon(idx, QIcon())
|
self.playlist_section.tabPlaylist.setTabIcon(idx, QIcon())
|
||||||
|
|
||||||
|
|||||||
@ -226,9 +226,6 @@ class PlaylistModel(QAbstractTableModel):
|
|||||||
if note_background:
|
if note_background:
|
||||||
return QBrush(QColor(note_background))
|
return QBrush(QColor(note_background))
|
||||||
|
|
||||||
if self.is_template:
|
|
||||||
return QBrush(QColor(Config.COLOUR_TEMPLATE_ROW))
|
|
||||||
|
|
||||||
return QBrush()
|
return QBrush()
|
||||||
|
|
||||||
def begin_reset_model(self, playlist_id: int) -> None:
|
def begin_reset_model(self, playlist_id: int) -> None:
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="icons">
|
<qresource prefix="icons">
|
||||||
<file>yellow-circle.png</file>
|
<file>yellow-circle.png</file>
|
||||||
|
<file>redstar.png</file>
|
||||||
<file>green-circle.png</file>
|
<file>green-circle.png</file>
|
||||||
<file>star.png</file>
|
<file>star.png</file>
|
||||||
<file>star_empty.png</file>
|
<file>star_empty.png</file>
|
||||||
|
|||||||
1399
app/ui/icons_rc.py
1399
app/ui/icons_rc.py
File diff suppressed because it is too large
Load Diff
BIN
app/ui/redstar.png
Normal file
BIN
app/ui/redstar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Loading…
Reference in New Issue
Block a user