]> danix's work - publisher.git/commitdiff
fix: always set explicit foreground color on ArticleItem v1.2
authorDanilo M. <redacted>
Sun, 3 May 2026 13:56:44 +0000 (15:56 +0200)
committerDanilo M. <redacted>
Sun, 3 May 2026 13:56:44 +0000 (15:56 +0200)
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 <redacted>
ui/articles_view.py

index 2c52ac87a60a4f556b574d5e936a57f6b21ee8f7..c965b6ae62fd70d68c5720da8c184b865bb1155a 100644 (file)
@@ -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):