From 18a7fb9dcd7a4703203b8124afbad6608ab8d81b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 5 Sep 2018 16:55:26 +1000 Subject: [PATCH] prioritize marked/flagged card colour over suspended colour --- aqt/browser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aqt/browser.py b/aqt/browser.py index a5e502b71..893d6d60f 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -358,12 +358,12 @@ class StatusDelegate(QItemDelegate): option.direction = Qt.RightToLeft col = None - if c.queue == -1: - col = COLOUR_SUSPENDED - elif c.userFlag() > 0: + if c.userFlag() > 0: col = flagColours[c.userFlag()] elif c.note().hasTag("Marked"): col = COLOUR_MARKED + elif c.queue == -1: + col = COLOUR_SUSPENDED if col: brush = QBrush(QColor(col)) painter.save()