mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 00:52:30 -06:00
Simplify tray icon related code
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QColor>
|
||||
#include <QHash>
|
||||
#include <QIcon>
|
||||
@@ -51,6 +52,10 @@ public:
|
||||
|
||||
QColor getColor(const QString &id, const QColor &defaultColor) const;
|
||||
|
||||
#ifndef Q_OS_MACOS
|
||||
QIcon getSystrayIcon() const;
|
||||
#endif
|
||||
|
||||
private:
|
||||
UIThemeManager(); // singleton class
|
||||
QString getIconPathFromResources(const QString &iconId, const QString &fallback = {}) const;
|
||||
|
||||
Reference in New Issue
Block a user