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/trayicon.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'akregator/src/trayicon.cpp') 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" -- cgit v1.2.1