From faf37227f5194237dbda5973c21d05de3633ea03 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 5 Oct 2014 18:37:59 -0500 Subject: Add configuration options to set Akregator read and unread text colors This resolves Bug 1696 --- akregator/src/articlelistview.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'akregator/src/articlelistview.cpp') diff --git a/akregator/src/articlelistview.cpp b/akregator/src/articlelistview.cpp index 96a2a050c..2324096be 100644 --- a/akregator/src/articlelistview.cpp +++ b/akregator/src/articlelistview.cpp @@ -178,14 +178,13 @@ void ArticleListView::ArticleItem::paintCell ( TQPainter * p, const TQColorGroup TDEListViewItem::paintCell( p, cg, column, width, align ); else { - // if article status is unread or new, we change the color: FIXME: make colors configurable TQColorGroup cg2(cg); - + if (article().status() == Article::Unread) - cg2.setColor(TQColorGroup::Text, TQt::blue); + cg2.setColor(TQColorGroup::Text, Settings::unreadTextColor()); else // New - cg2.setColor(TQColorGroup::Text, TQt::red); - + cg2.setColor(TQColorGroup::Text, Settings::readTextColor()); + TDEListViewItem::paintCell( p, cg2, column, width, align ); } -- cgit v1.2.1