diff options
Diffstat (limited to 'akregator/src/trayicon.cpp')
-rw-r--r-- | akregator/src/trayicon.cpp | 9 |
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" |