Bug 50071

Summary: provide different icon on system tray when download is not started
Product: [Applications] kget Reporter: Stefanos Harhalakis <v13>
Component: generalAssignee: KGet authors <kget>
Status: RESOLVED FIXED    
Severity: wishlist CC: bugzilla
Priority: NOR    
Version: 0.8.1   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stefanos Harhalakis 2002-11-02 13:36:55 UTC
Version:            (using KDE KDE 3.0.8)
Installed from:    Unspecified Linux
OS:          Linux

Suppose there are 4 downloads.. 2 active and 2 in the queue.
All of them may be shown in system tray.
It whould be nice to have a different icon for downloads.
queued / finished etc.. or add an option not to show queued
downloads in system tray untill they are started.
Comment 1 Carsten Pfeiffer 2002-11-04 00:41:05 UTC
Yes, that sounds like a good idea. Now I only need a new icon for that :) 
Comment 2 Mohd Asif Ali Rizwaan 2005-02-24 05:49:41 UTC
Also in System Tray, Animated Icon would be cool. like Colors pouring down in the Arrow (KGet Icon).
Comment 3 Becheru Petru-Ioan 2005-03-14 15:09:07 UTC
vote for this
Comment 4 Urs Wolfer 2005-07-23 19:00:41 UTC
*** Bug 109151 has been marked as a duplicate of this bug. ***
Comment 5 Urs Wolfer 2005-07-24 16:30:31 UTC
SVN commit 438157 by uwolfer:

Now the systrayicon change it's color when a download is in progress. I simply changed the arrow color to green (I'm not an artist... ;) ).

FEATURE: 50071
FEATURE: 59380

 M  +6 -0      docking.cpp  
 M  +1 -0      docking.h  
 AM            icons/cr22-action-kget_dock_download.png  
 M  +9 -0      kmainwidget.cpp  


--- trunk/KDE/kdenetwork/kget/docking.cpp #438156:438157
@@ -103,6 +103,12 @@
 }
 
 
+void DockWidget::changeIcon( const QString& icon )
+{
+    setPixmap( loadIcon( icon ));
+}
+
+
 DynamicTip::DynamicTip( QWidget * parent )
    : QToolTip( parent )
 {
--- trunk/KDE/kdenetwork/kget/docking.h #438156:438157
@@ -60,6 +60,7 @@
     ~DockWidget();
     /** No descriptions */
     void updateToolTip( const QString& );
+    void changeIcon( const QString& icon );
 
 
 
** trunk/KDE/kdenetwork/kget/icons/cr22-action-kget_dock_download.png #property changes
Name: svn:mime-type
   + application/octet-stream
--- trunk/KDE/kdenetwork/kget/kmainwidget.cpp #438156:438157
@@ -2111,6 +2111,15 @@
                  i18n("<br /><b>Time:</b> %1 ").arg(KIO::convertSeconds(remTime)) +
                  i18n("<br /><b>Speed:</b> %1/s").arg(KIO::convertSize(totalSpeed));
         kdock->updateToolTip( tmpstr );
+        //trayicon changes if download is in progress
+        if (totalSpeed == 0)
+        {
+            kdock->changeIcon( "kget_dock" );
+        }
+        else
+        {
+            kdock->changeIcon( "kget_dock_download" );
+        }
     }
 #ifdef _DEBUG
     //sDebugOut << endl;