diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-21 19:30:06 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-21 19:30:06 +0300 |
commit | 0b74b3833a95598d1770d7bd98acf15f2582ccb6 (patch) | |
tree | e6c2dc266c06d6475347c7d5480b692dedf86901 /launcher/ui/themes/ThemeManager.h | |
parent | ef21879df4f7c2822381e1b6af4901e0e6b0d339 (diff) | |
parent | 821dd8400b1a27ab1f932200bfa77d7a04edef5d (diff) | |
download | PrismLauncher-0b74b3833a95598d1770d7bd98acf15f2582ccb6.tar.gz PrismLauncher-0b74b3833a95598d1770d7bd98acf15f2582ccb6.tar.bz2 PrismLauncher-0b74b3833a95598d1770d7bd98acf15f2582ccb6.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into import
Diffstat (limited to 'launcher/ui/themes/ThemeManager.h')
-rw-r--r-- | launcher/ui/themes/ThemeManager.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/launcher/ui/themes/ThemeManager.h b/launcher/ui/themes/ThemeManager.h index d2a6fb70..1ce8c6f4 100644 --- a/launcher/ui/themes/ThemeManager.h +++ b/launcher/ui/themes/ThemeManager.h @@ -20,6 +20,7 @@ #include <QString> #include "ui/MainWindow.h" +#include "ui/themes/CatPack.h" #include "ui/themes/ITheme.h" inline auto themeDebugLog() @@ -40,18 +41,20 @@ class ThemeManager { void applyCurrentlySelectedTheme(bool initial = false); void setApplicationTheme(const QString& name, bool initial = false); - /// <summary> - /// Returns the cat based on selected cat and with events (Birthday, XMas, etc.) - /// </summary> - /// <param name="catName">Optional, if you need a specific cat.</param> - /// <returns></returns> - static QString getCatImage(QString catName = ""); + /// @brief Returns the background based on selected and with events (Birthday, XMas, etc.) + /// @param catName Optional, if you need a specific background. + /// @return + QString getCatPack(QString catName = ""); + QList<CatPack*> getValidCatPacks(); private: std::map<QString, std::unique_ptr<ITheme>> m_themes; + std::map<QString, std::unique_ptr<CatPack>> m_catPacks; MainWindow* m_mainWindow; void initializeThemes(); + void initializeCatPacks(); QString addTheme(std::unique_ptr<ITheme> theme); ITheme* getTheme(QString themeId); + QString addCatPack(std::unique_ptr<CatPack> catPack); }; |