diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-03 15:56:44 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-03 15:56:44 +0200 |
| commit | 86fd963587ce87b56f208daf07714c0f87a8cb08 (patch) | |
| tree | 6502dcf860b839fab1e1c1f6efe1c22aa144c6a2 | |
| parent | d938c12635dfed074f58295e86d72d7867268ea5 (diff) | |
| download | publisher-1.2.tar.gz publisher-1.2.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>
| -rw-r--r-- | ui/articles_view.py | 2 |
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): |
