mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Use the SVG for the tray icon.
This commit is contained in:
parent
48d7bdee0e
commit
09cb95d3da
8 changed files with 9 additions and 8 deletions
|
@ -1960,6 +1960,8 @@ QIcon MainWindow::getSystrayIcon() const
|
|||
}
|
||||
#else
|
||||
switch (style) {
|
||||
case TrayIcon::NORMAL:
|
||||
return QIcon(QLatin1String(":/icons/skin/qbittorrent-tray.svg"));
|
||||
case TrayIcon::MONO_DARK:
|
||||
return QIcon(QLatin1String(":/icons/skin/qbittorrent-tray-dark.svg"));
|
||||
case TrayIcon::MONO_LIGHT:
|
||||
|
@ -1969,11 +1971,8 @@ QIcon MainWindow::getSystrayIcon() const
|
|||
}
|
||||
#endif
|
||||
|
||||
QIcon icon;
|
||||
icon.addFile(":/icons/skin/qbittorrent22.png", QSize(22, 22));
|
||||
icon.addFile(":/icons/skin/qbittorrent16.png", QSize(16, 16));
|
||||
icon.addFile(":/icons/skin/qbittorrent32.png", QSize(32, 32));
|
||||
return icon;
|
||||
// As a failsafe in case the enum is invalid
|
||||
return QIcon(QLatin1String(":/icons/skin/qbittorrent-tray.svg"));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -359,10 +359,10 @@
|
|||
<file>icons/skin/logo2.gif</file>
|
||||
<file>icons/skin/mascot.png</file>
|
||||
<file>icons/skin/paused.png</file>
|
||||
<file>icons/skin/qbittorrent-tray.svg</file>
|
||||
<file>icons/skin/qbittorrent-tray-dark.svg</file>
|
||||
<file>icons/skin/qbittorrent-tray-light.svg</file>
|
||||
<file>icons/skin/qbittorrent16.png</file>
|
||||
<file>icons/skin/qbittorrent22.png</file>
|
||||
<file>icons/skin/qbittorrent32.png</file>
|
||||
<file>icons/skin/queued.png</file>
|
||||
<file>icons/skin/ratio.png</file>
|
||||
|
|
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 740 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
Loading…
Add table
Add a link
Reference in a new issue