mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 23:52:31 -06:00
committed by
GitHub
parent
989b1e6c2c
commit
77aa85fbd3
@@ -39,22 +39,7 @@
|
||||
#include <QString>
|
||||
|
||||
#include "base/pathfwd.h"
|
||||
|
||||
enum class ColorMode
|
||||
{
|
||||
Light,
|
||||
Dark
|
||||
};
|
||||
|
||||
class UIThemeSource
|
||||
{
|
||||
public:
|
||||
virtual ~UIThemeSource() = default;
|
||||
|
||||
virtual QColor getColor(const QString &colorId, const ColorMode colorMode) const = 0;
|
||||
virtual Path getIconPath(const QString &iconId, const ColorMode colorMode) const = 0;
|
||||
virtual QByteArray readStyleSheet() = 0;
|
||||
};
|
||||
#include "uithemesource.h"
|
||||
|
||||
class UIThemeManager final : public QObject
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user