diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-06 04:29:12 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-06 04:29:12 +0100 |
commit | bc753859b5ab5d1402940024c0478548165b57f8 (patch) | |
tree | 4d067325767b6100f1483115e5547a80ef14a4da /application/themes/CustomTheme.h | |
parent | 13b575f7a90ef97f3b30f2a2f74bd19d58d375e7 (diff) | |
download | MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar.gz MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar.lz MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar.xz MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.zip |
GH-378 add basic custom theme support
Files you can customize are created in themes/custom/
Diffstat (limited to 'application/themes/CustomTheme.h')
-rw-r--r-- | application/themes/CustomTheme.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/application/themes/CustomTheme.h b/application/themes/CustomTheme.h new file mode 100644 index 00000000..94cd10a5 --- /dev/null +++ b/application/themes/CustomTheme.h @@ -0,0 +1,28 @@ +#pragma once + +#include "ITheme.h" + +class CustomTheme: public ITheme +{ +public: + CustomTheme(ITheme * baseTheme, QString folder); + virtual ~CustomTheme() {} + + QString id() override; + QString name() override; + QString appStyleSheet() override; + QPalette colorScheme() override; + double fadeAmount() override; + QColor fadeColor() override; + QString qtTheme() override; + +private: /* data */ + QPalette m_palette; + QColor m_fadeColor; + double m_fadeAmount; + QString m_styleSheet; + QString m_name; + QString m_id; + QString m_widgets; +}; + |