|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
#include <theme_parser.h>
Classes | |
| struct | Result |
Public Member Functions | |
| ThemeParser (const QHash< QString, ThemeSectionInfo > §ions, const QHash< QString, ThemeManager::ThemeToken > &roleCache) | |
| bool | parse (const QString &internalName, const QString &resourcePath, Result &out) |
Companion parser for ThemeManager. Handles every aspect of reading a theme.jsonc file: comment stripping, JSON parsing, section/role/color decoding, graph colors, font hints. Has no opinion on palette application, derived tokens, stylesheets, or runtime mode — those remain ThemeManager's responsibility.
Constructed with const references to the section definitions and the role-name → ThemeToken cache owned by ThemeManager; never modifies them. A single ThemeParser instance can parse successive themes.
Private to the theme subsystem. Outside callers should go through ThemeManager.
| bool ThemeParser::parse | ( | const QString & | internalName, |
| const QString & | resourcePath, | ||
| Result & | out | ||
| ) |
Reads and parses the theme JSONC at the given Qt resource path.
| internalName | short name (e.g. "default"); stored on the result. |
| resourcePath | full Qt resource URL (e.g. ":/themes/default/theme.jsonc"). |
| out | populated on success. |