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:
luisangelsm
2026-03-22 12:13:07 +01:00
parent 2560174a84
commit 0affbded6e
11 changed files with 587 additions and 527 deletions

View 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