summaryrefslogtreecommitdiffstats
path: root/ui/articles_view.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-03 15:56:44 +0200
committerDanilo M. <danix@danix.xyz>2026-05-03 15:56:44 +0200
commit86fd963587ce87b56f208daf07714c0f87a8cb08 (patch)
tree6502dcf860b839fab1e1c1f6efe1c22aa144c6a2 /ui/articles_view.py
parentd938c12635dfed074f58295e86d72d7867268ea5 (diff)
downloadpublisher-86fd963587ce87b56f208daf07714c0f87a8cb08.tar.gz
publisher-86fd963587ce87b56f208daf07714c0f87a8cb08.zip
fix: always set explicit foreground color on ArticleItemv1.2
Without an explicit color for normal articles, Qt reused the foreground from a previously painted item at the same row index, causing published articles to appear amber (draft color). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'ui/articles_view.py')
-rw-r--r--ui/articles_view.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/articles_view.py b/ui/articles_view.py
index 2c52ac8..c965b6a 100644
--- a/ui/articles_view.py
+++ b/ui/articles_view.py
@@ -77,6 +77,8 @@ class ArticleItem(QListWidgetItem):
self.setForeground(QColor("#f59e0b"))
elif not article.has_translation:
self.setForeground(QColor("#ff6b6b"))
+ else:
+ self.setForeground(QColor("#cccccc"))
class ArticlesView(QWidget):