From: Danilo M. Date: Sun, 3 May 2026 13:56:44 +0000 (+0200) Subject: fix: always set explicit foreground color on ArticleItem X-Git-Tag: v1.2 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=86fd963587ce87b56f208daf07714c0f87a8cb08;p=publisher.git fix: always set explicit foreground color on ArticleItem 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 --- 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):