No default note background for track notes
This commit is contained in:
parent
7e02bd60e5
commit
27eba987ca
@ -1002,8 +1002,6 @@ class PlaylistTab(QTableWidget):
|
|||||||
note_text = playlist_row.note
|
note_text = playlist_row.note
|
||||||
# Get note colour
|
# Get note colour
|
||||||
note_colour = NoteColours.get_colour(session, note_text)
|
note_colour = NoteColours.get_colour(session, note_text)
|
||||||
if not note_colour:
|
|
||||||
note_colour = Config.COLOUR_NOTES_PLAYLIST
|
|
||||||
|
|
||||||
# Set row height
|
# Set row height
|
||||||
self.resizeRowToContents(row)
|
self.resizeRowToContents(row)
|
||||||
@ -1029,7 +1027,7 @@ class PlaylistTab(QTableWidget):
|
|||||||
section_time += track.duration
|
section_time += track.duration
|
||||||
|
|
||||||
# Colour any note
|
# Colour any note
|
||||||
if note_text:
|
if note_colour:
|
||||||
(self.item(row, columns['row_notes'].idx)
|
(self.item(row, columns['row_notes'].idx)
|
||||||
.setBackground(QColor(note_colour)))
|
.setBackground(QColor(note_colour)))
|
||||||
|
|
||||||
@ -1132,6 +1130,8 @@ class PlaylistTab(QTableWidget):
|
|||||||
elif note_text.endswith("+"):
|
elif note_text.endswith("+"):
|
||||||
section_start_plr = playlist_row
|
section_start_plr = playlist_row
|
||||||
section_time = 0
|
section_time = 0
|
||||||
|
if not note_colour:
|
||||||
|
note_colour = Config.COLOUR_NOTES_PLAYLIST
|
||||||
self._set_row_colour(row, QColor(note_colour))
|
self._set_row_colour(row, QColor(note_colour))
|
||||||
# Section headers are always bold
|
# Section headers are always bold
|
||||||
self._set_row_bold(row)
|
self._set_row_bold(row)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user