aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/themes/ThemeManager.h
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-07-19 20:57:08 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-07-19 20:57:08 +0100
commit960093700a9daa4e2115d4663ab486a5dd1a4757 (patch)
tree0d943e8a26655da5fe81a9ef2671db4b23fb38c7 /launcher/ui/themes/ThemeManager.h
parent54d393632d5c964f0c30ca9bc816853b92552c9c (diff)
downloadPrismLauncher-960093700a9daa4e2115d4663ab486a5dd1a4757.tar.gz
PrismLauncher-960093700a9daa4e2115d4663ab486a5dd1a4757.tar.bz2
PrismLauncher-960093700a9daa4e2115d4663ab486a5dd1a4757.zip
Better theme reset
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/themes/ThemeManager.h')
-rw-r--r--launcher/ui/themes/ThemeManager.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/launcher/ui/themes/ThemeManager.h b/launcher/ui/themes/ThemeManager.h
index 2b6c57e9..627fdc75 100644
--- a/launcher/ui/themes/ThemeManager.h
+++ b/launcher/ui/themes/ThemeManager.h
@@ -35,13 +35,15 @@ inline auto themeWarningLog()
class ThemeManager {
public:
- ThemeManager(MainWindow* mainWindow);
+ ThemeManager();
QList<ITheme*> getValidApplicationThemes();
QList<IconTheme*> getValidIconThemes();
- bool setIconTheme(const QString& name);
+ bool isValidApplicationTheme(const QString& id);
+ bool isValidIconTheme(const QString& id);
void applyCurrentlySelectedTheme(bool initial = false);
- bool setApplicationTheme(const QString& name, bool initial = false);
+ void setIconTheme(const QString& name);
+ void setApplicationTheme(const QString& name, bool initial = false);
/// <summary>
/// Returns the cat based on selected cat and with events (Birthday, XMas, etc.)
@@ -53,7 +55,6 @@ class ThemeManager {
private:
std::map<QString, std::unique_ptr<ITheme>> m_themes;
std::map<QString, IconTheme> m_icons;
- MainWindow* m_mainWindow;
void initializeThemes();
QString addTheme(std::unique_ptr<ITheme> theme);