mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Normalize color strings so they are always upper case for better readability of the theme files and the values in the editor
This commit is contained in:
14
common/themes/theme_json_utils.h
Normal file
14
common/themes/theme_json_utils.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef THEME_JSON_UTILS_H
|
||||
#define THEME_JSON_UTILS_H
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
#include <QString>
|
||||
|
||||
bool isThemeHexColorString(const QString &value);
|
||||
QJsonObject normalizeThemeJson(const QJsonObject &json);
|
||||
QByteArray serializeNormalizedThemeJson(const QJsonObject &json,
|
||||
QJsonDocument::JsonFormat format = QJsonDocument::Indented);
|
||||
|
||||
#endif // THEME_JSON_UTILS_H
|
||||
Reference in New Issue
Block a user