Simplify tray icon related code

This commit is contained in:
Chocobo1
2021-12-13 15:56:20 +08:00
parent b8a84dbd83
commit 85777ea491
8 changed files with 125 additions and 140 deletions

View File

@@ -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;