summaryrefslogtreecommitdiffstats
path: root/application/MultiMC.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-10-21 09:07:26 +0200
committerPetr Mrázek <peterix@gmail.com>2016-10-21 09:07:26 +0200
commit872cfe036d9472739939ad401dbe9511193d62ca (patch)
tree2d8356848c4955b09d66d6fc96924cc4da85ccb9 /application/MultiMC.h
parentf07496ac6d42986266f3bff5093fa0009521ecd5 (diff)
downloadMultiMC-872cfe036d9472739939ad401dbe9511193d62ca.tar
MultiMC-872cfe036d9472739939ad401dbe9511193d62ca.tar.gz
MultiMC-872cfe036d9472739939ad401dbe9511193d62ca.tar.lz
MultiMC-872cfe036d9472739939ad401dbe9511193d62ca.tar.xz
MultiMC-872cfe036d9472739939ad401dbe9511193d62ca.zip
GH-903 simple theme switching and dark theme
Diffstat (limited to 'application/MultiMC.h')
-rw-r--r--application/MultiMC.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/MultiMC.h b/application/MultiMC.h
index 887f9c2d..3b8751c1 100644
--- a/application/MultiMC.h
+++ b/application/MultiMC.h
@@ -25,6 +25,7 @@ class UpdateChecker;
class BaseProfilerFactory;
class BaseDetachedToolFactory;
class TranslationDownloader;
+class ITheme;
#if defined(MMC)
#undef MMC
@@ -69,6 +70,9 @@ public:
void setIconTheme(const QString& name);
+ std::vector<ITheme *> getValidApplicationThemes();
+ void setApplicationTheme(const QString& name);
+
// DownloadUpdateTask
std::shared_ptr<UpdateChecker> updateChecker()
{
@@ -145,6 +149,7 @@ private slots:
private:
void initLogger();
void initIcons();
+ void initThemes();
void initGlobalSettings(bool test_mode);
void initTranslations();
void initSSL();
@@ -169,6 +174,7 @@ private:
std::shared_ptr<JavaInstallList> m_javalist;
std::shared_ptr<TranslationDownloader> m_translationChecker;
std::shared_ptr<GenericPageProvider> m_globalSettingsProvider;
+ std::map<QString, std::unique_ptr<ITheme>> m_themes;
QMap<QString, std::shared_ptr<BaseProfilerFactory>> m_profilers;
QMap<QString, std::shared_ptr<BaseDetachedToolFactory>> m_tools;