1#ifndef COCKATRICE_THEME_CONFIG_H
2#define COCKATRICE_THEME_CONFIG_H
15 QString
toIni()
const;
18 bool save(
const QString &themeDirPath)
const;
23 QMap<QPalette::ColorGroup, QMap<QPalette::ColorRole, QColor>>
colors;
28 static QString
fileName(
const QString &colorScheme);
34 QPalette
apply(QPalette base)
const;
Definition theme_config.h:22
bool hasPalette() const
Definition theme_config.cpp:97
static PaletteConfig fromScheme(const QString &themeDirPath, const QString &colorScheme)
Definition theme_config.cpp:229
QString toToml() const
Definition theme_config.cpp:102
static PaletteConfig fromFile(const QString &filePath)
Definition theme_config.cpp:144
static QString fileName(const QString &colorScheme)
Definition theme_config.cpp:139
static PaletteConfig fromDefault(const QString &themeDirPath, const QString &colorScheme)
Definition theme_config.cpp:238
QMap< QPalette::ColorGroup, QMap< QPalette::ColorRole, QColor > > colors
Definition theme_config.h:23
QPalette apply(QPalette base) const
Definition theme_config.cpp:258
Definition theme_config.h:10
bool isEmpty() const
Definition theme_config.cpp:8
static ThemeConfig fromThemeDir(const QString &themeDirPath)
Definition theme_config.cpp:23
bool save(const QString &themeDirPath) const
Definition theme_config.cpp:74
QString colorScheme
Definition theme_config.h:11
QString styleName
Definition theme_config.h:12
QString toIni() const
Definition theme_config.cpp:13