diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2016-10-27 11:35:02 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2016-10-27 11:35:02 +0300 |
commit | 93bd5880d984fdca6d85672abf497a14b1f50131 (patch) | |
tree | 706952f63b0ae90a2be4ec844306260f02673a2d /Duplicati/GUI/Duplicati.GUI.TrayIcon/AppIndicatorRunner.cs | |
parent | b765c48ac062502910adae25bb3fb4971f56df32 (diff) |
Updated the way icons are loaded on Linux with Gtk and AppIndicator trayicons.
The icons are now loaded from SVG to give the best possible resolution.
This fixes #1710
This fixes #2034
Diffstat (limited to 'Duplicati/GUI/Duplicati.GUI.TrayIcon/AppIndicatorRunner.cs')
-rw-r--r-- | Duplicati/GUI/Duplicati.GUI.TrayIcon/AppIndicatorRunner.cs | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/AppIndicatorRunner.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/AppIndicatorRunner.cs index ecacbbd8d..407db2157 100644 --- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/AppIndicatorRunner.cs +++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/AppIndicatorRunner.cs @@ -54,32 +54,29 @@ namespace Duplicati.GUI.TrayIcon {
set
{
+ m_appIndicator.IconName = GetTrayIconFilename(value);
+
switch(value)
{
- case TrayIcons.Paused:
- m_appIndicator.IconName = "normal-pause";
- m_appIndicator.IconDesc = "Paused";
- break;
- case TrayIcons.Running:
- m_appIndicator.IconName = "normal-running";
- m_appIndicator.IconDesc = "Running";
- break;
- case TrayIcons.IdleError:
- m_appIndicator.IconName = "normal-error";
- m_appIndicator.IconDesc = "Error";
- break;
- case TrayIcons.RunningError:
- m_appIndicator.IconName = "normal-running";
- break;
- case TrayIcons.PausedError:
- m_appIndicator.IconName = "normal-pause";
- m_appIndicator.IconDesc = "Paused";
- break;
- case TrayIcons.Idle:
- default:
- m_appIndicator.IconName = "normal";
- m_appIndicator.IconDesc = "Ready";
- break;
+ case TrayIcons.Paused:
+ m_appIndicator.IconDesc = "Paused";
+ break;
+ case TrayIcons.Running:
+ m_appIndicator.IconDesc = "Running";
+ break;
+ case TrayIcons.IdleError:
+ m_appIndicator.IconDesc = "Error";
+ break;
+ case TrayIcons.RunningError:
+ m_appIndicator.IconDesc = "Running";
+ break;
+ case TrayIcons.PausedError:
+ m_appIndicator.IconDesc = "Paused";
+ break;
+ case TrayIcons.Idle:
+ default:
+ m_appIndicator.IconDesc = "Ready";
+ break;
}
}
}
|