18#include "Models/Colours.h"
34 void setThemes(
const QMap<QString, Colours> &themes);
38 bool exists(
const QString &name)
const;
42 QMap<QString, Colours> themes;
44 mutable QSettings settings;
47 void loadFactoryTheme();
49 void saveColours(
const Colours &theme)
const;
Definition ColourStore.h:21
const QStringList themeNames() const
Retrieve the list of available theme names.
Definition ColourStore.cpp:236
Colours getTheme(const QString &name) const
Retrieve a colour theme by name.
Definition ColourStore.cpp:91
bool exists(const QString &name) const
Check if a colour theme exists.
Definition ColourStore.cpp:250
void setTheme(const QString &name, const Colours &theme)
Set or update a colour theme.
Definition ColourStore.cpp:182
ColourStore()
ColourStore::ColourStore constructor.
Definition ColourStore.cpp:18
void saveAllThemes() const
Save all colour themes to persistent storage.
Definition ColourStore.cpp:126
void saveTheme(const Colours &theme)
Save a colour theme.
Definition ColourStore.cpp:107
void setThemes(const QMap< QString, Colours > &themes)
Set multiple colour themes at once.
Definition ColourStore.cpp:199
void removeTheme(const QString &name)
Remove a colour theme by name.
Definition ColourStore.cpp:221