summaryrefslogtreecommitdiffstats
path: root/akregator/src/trayicon.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2014-10-05 18:37:59 -0500
committerTimothy Pearson <[email protected]>2014-10-05 18:37:59 -0500
commitfaf37227f5194237dbda5973c21d05de3633ea03 (patch)
tree2fe295ab340901ac71d610e233ef651a7c3404d3 /akregator/src/trayicon.cpp
parent352bfda9b44902c28c0f8cb7beaa9decd39fb6d6 (diff)
downloadtdepim-faf37227f5194237dbda5973c21d05de3633ea03.tar.gz
tdepim-faf37227f5194237dbda5973c21d05de3633ea03.zip
Add configuration options to set Akregator read and unread text colors
This resolves Bug 1696
Diffstat (limited to 'akregator/src/trayicon.cpp')
-rw-r--r--akregator/src/trayicon.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/akregator/src/trayicon.cpp b/akregator/src/trayicon.cpp
index 240e2d5b5..9cab8b3bf 100644
--- a/akregator/src/trayicon.cpp
+++ b/akregator/src/trayicon.cpp
@@ -182,7 +182,7 @@ void TrayIcon::setUnread(int unread, bool force)
pix.fill(TQt::white);
TQPainter p(&pix);
p.setFont(f);
- p.setPen(TQt::blue);
+ p.setPen(Settings::unreadTextColor());
p.drawText(pix.rect(), TQt::AlignCenter, uStr);
pix.setMask(pix.createHeuristicMask());
@@ -206,10 +206,13 @@ void TrayIcon::viewButtonClicked()
void TrayIcon::settingsChanged()
{
- if ( Settings::showTrayIcon() )
+ if ( Settings::showTrayIcon() ) {
show();
- else
+ setUnread(m_unread, true);
+ }
+ else {
hide();
+ }
}
}
#include "trayicon.moc"