Index: akregator.kcfg
===================================================================
--- akregator/src/akregator.kcfg (revision 573936)
+++ akregator/src/akregator.kcfg (working copy)
@@ -40,6 +40,16 @@
+
+ false
+
+
+ #0000FF
+
+
+ #FF0000
+
+
Index: articlelistview.cpp
===================================================================
--- akregator/src/articlelistview.cpp (revision 573936)
+++ akregator/src/articlelistview.cpp (working copy)
@@ -181,15 +181,20 @@
QColorGroup cg2(cg);
if (article().status() == Article::Unread)
- cg2.setColor(QColorGroup::Text, Qt::blue);
+ cg2.setColor(QColorGroup::Text, Settings::useCustomColors() ? Settings::colorUnreadArticles() : Qt::blue);
else // New
- cg2.setColor(QColorGroup::Text, Qt::red);
+ cg2.setColor(QColorGroup::Text, Settings::useCustomColors() ? Settings::colorNewArticles() : Qt::red);
KListViewItem::paintCell( p, cg2, column, width, align );
}
}
+void ArticleListView::slotPaletteOrFontChanged()
+{
+ triggerUpdate();
+}
+
void ArticleListView::ArticleItem::updateItem(const Article& article)
{
m_article = article;
Index: articlelistview.h
===================================================================
--- akregator/src/articlelistview.h (revision 573936)
+++ akregator/src/articlelistview.h (working copy)
@@ -80,6 +80,8 @@
/** selects next unread article in list view, first unread article if no article was selected */
void slotNextUnreadArticle();
+ void slotPaletteOrFontChanged();
+
signals:
void signalArticleChosen(const Article& article);
void signalDoubleClicked(const Article&, const QPoint&, int);
Index: settings_appearance.ui
===================================================================
--- akregator/src/settings_appearance.ui (revision 573936)
+++ akregator/src/settings_appearance.ui (working copy)
@@ -10,20 +10,20 @@
0
0
418
- 377
+ 566
General
-
+
unnamed
0
-
+
groupBox3
@@ -114,8 +114,25 @@
-
+
+ spacer1
+
+
+ Vertical
+
+
+ Expanding
+
+
+
+ 20
+ 41
+
+
+
+
+
FontsGroupBox
@@ -179,7 +196,7 @@
-
+
kcfg_UnderlineLinks
@@ -187,24 +204,99 @@
&Underline links
-
+
- spacer1
+ groupBox3_2
-
- Vertical
+
+ Article List Colors
-
- Expanding
-
-
-
- 20
- 41
-
-
-
-
+
+
+ unnamed
+
+
+
+ kcfg_UseCustomColors
+
+
+ Use custom colors
+
+
+
+
+ layout1
+
+
+
+ unnamed
+
+
+
+ lbl_unreadArticles
+
+
+ false
+
+
+ Unread articles
+
+
+
+
+ kcfg_ColorNewArticles
+
+
+ false
+
+
+
+
+
+
+
+ kcfg_ColorUnreadArticles
+
+
+ false
+
+
+
+
+
+
+
+ lbl_newArticles
+
+
+ false
+
+
+ New articles
+
+
+
+
+
+
+ spacer2
+
+
+ Horizontal
+
+
+ Expanding
+
+
+
+ 110
+ 20
+
+
+
+
+
+
@@ -233,18 +325,38 @@
kcfg_MinimumFontSize
setValue(int)
+
+ kcfg_UseCustomColors
+ toggled(bool)
+ kcfg_ColorUnreadArticles
+ setEnabled(bool)
+
+
+ kcfg_UseCustomColors
+ toggled(bool)
+ kcfg_ColorNewArticles
+ setEnabled(bool)
+
+
+ kcfg_UseCustomColors
+ toggled(bool)
+ lbl_unreadArticles
+ setEnabled(bool)
+
+
+ kcfg_UseCustomColors
+ toggled(bool)
+ lbl_newArticles
+ setEnabled(bool)
+
- knuminput.h
- knuminput.h
kfontcombo.h
- klineedit.h
kfontcombo.h
- klineedit.h
kfontcombo.h
- klineedit.h
kfontcombo.h
- klineedit.h
+ kcolorbutton.h
+ kcolorbutton.h
Index: akregator_view.cpp
===================================================================
--- akregator/src/akregator_view.cpp (revision 577072)
+++ akregator/src/akregator_view.cpp (working copy)
@@ -297,6 +297,8 @@
connect( m_articleList, SIGNAL(signalDoubleClicked(const Article&, const QPoint&, int)),
this, SLOT( slotOpenArticleExternal(const Article&, const QPoint&, int)) );
+ connect( m_part, SIGNAL(signalSettingsChanged()), m_articleList, SLOT(slotPaletteOrFontChanged()));
+
m_articleViewer = new ArticleViewer(m_articleSplitter, "article_viewer");
m_articleViewer->setSafeMode(); // disable JS, Java, etc...