diff options
Diffstat (limited to 'launcher/themes/ITheme.h')
-rw-r--r-- | launcher/themes/ITheme.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/launcher/themes/ITheme.h b/launcher/themes/ITheme.h new file mode 100644 index 00000000..c2347cf6 --- /dev/null +++ b/launcher/themes/ITheme.h @@ -0,0 +1,27 @@ +#pragma once +#include <QString> +#include <QPalette> + +class QStyle; + +class ITheme +{ +public: + virtual ~ITheme() {} + virtual void apply(bool initial); + virtual QString id() = 0; + virtual QString name() = 0; + virtual bool hasStyleSheet() = 0; + virtual QString appStyleSheet() = 0; + virtual QString qtTheme() = 0; + virtual bool hasColorScheme() = 0; + virtual QPalette colorScheme() = 0; + virtual QColor fadeColor() = 0; + virtual double fadeAmount() = 0; + virtual QStringList searchPaths() + { + return {}; + } + + static QPalette fadeInactive(QPalette in, qreal bias, QColor color); +}; |