44 QHash<ThemeManager::ThemeToken, ThemeColorPair> colors;
45 QList<ThemeColorPair> graphColors;
50 ThemeParser(
const QHash<QString, ThemeSectionInfo> §ions,
51 const QHash<QString, ThemeManager::ThemeToken> &roleCache);
62 bool parse(
const QString &internalName,
63 const QString &resourcePath,
67 static QByteArray stripJsoncComments(
const QByteArray &jsonc);
68 static QColor parseColor(
const QString &colorStr);
70 void parseSection(
const QJsonObject &root,
71 const QString §ionName,
74 QHash<ThemeManager::ThemeToken, ThemeColorPair> &out);
75 static QString fontDescriptor(
const QJsonObject &obj);
76 static void parseFonts(
const QJsonObject &fontsObj,
Result &out);
78 ThemeManager::ThemeToken stringToToken(
const QString &token)
const;
80 const QHash<QString, ThemeSectionInfo> §ions_;
81 const QHash<QString, ThemeManager::ThemeToken> &roleCache_;
bool parse(const QString &internalName, const QString &resourcePath, Result &out)
Definition theme_parser.cpp:35
Definition theme_manager.h:39
Definition theme_manager.h:26
Definition theme_parser.h:42
QString regularFontName
theme's declared regular font descriptor; empty if unset
Definition theme_parser.h:46
QString monospaceFontName
theme's declared monospace font descriptor; empty if unset
Definition theme_parser.h:47
Definition theme_manager.h:34
Definition file-pcapng.h:57