mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
prioritize marked/flagged card colour over suspended colour
This commit is contained in:
parent
36b763e45f
commit
18a7fb9dcd
1 changed files with 3 additions and 3 deletions
|
@ -358,12 +358,12 @@ class StatusDelegate(QItemDelegate):
|
||||||
option.direction = Qt.RightToLeft
|
option.direction = Qt.RightToLeft
|
||||||
|
|
||||||
col = None
|
col = None
|
||||||
if c.queue == -1:
|
if c.userFlag() > 0:
|
||||||
col = COLOUR_SUSPENDED
|
|
||||||
elif c.userFlag() > 0:
|
|
||||||
col = flagColours[c.userFlag()]
|
col = flagColours[c.userFlag()]
|
||||||
elif c.note().hasTag("Marked"):
|
elif c.note().hasTag("Marked"):
|
||||||
col = COLOUR_MARKED
|
col = COLOUR_MARKED
|
||||||
|
elif c.queue == -1:
|
||||||
|
col = COLOUR_SUSPENDED
|
||||||
if col:
|
if col:
|
||||||
brush = QBrush(QColor(col))
|
brush = QBrush(QColor(col))
|
||||||
painter.save()
|
painter.save()
|
||||||
|
|
Loading…
Reference in a new issue