mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-07 16:12:30 -06:00
Allow changing GUI icons from theme bundles
This commit is contained in:
@@ -47,19 +47,20 @@ public:
|
||||
void applyStyleSheet() const;
|
||||
|
||||
QString getIconPath(const QString &iconId) const;
|
||||
QIcon getIcon(const QString &iconId) const;
|
||||
QIcon getIcon(const QString &iconId, const QString &fallback) const;
|
||||
QIcon getIcon(const QString &iconId, const QString &fallback = {}) const;
|
||||
QIcon getFlagIcon(const QString &countryIsoCode) const;
|
||||
|
||||
QColor getColor(const QString &id, const QColor &defaultColor) const;
|
||||
|
||||
private:
|
||||
UIThemeManager(); // singleton class
|
||||
QString getIconPathFromResources(const QString &iconId, const QString &fallback = {}) const;
|
||||
void loadColorsFromJSONConfig();
|
||||
void applyPalette() const;
|
||||
|
||||
static UIThemeManager *m_instance;
|
||||
QHash<QString, QColor> m_colors;
|
||||
const bool m_useCustomTheme;
|
||||
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS))
|
||||
bool m_useSystemTheme;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user