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

@ -1,4 +1,5 @@
#include "theme_repository.h"
#include "theme_json_utils.h"
#include <QDir>
#include <QFile>
@ -78,7 +79,7 @@ QString ThemeRepository::saveUserTheme(QJsonObject themeJson)
QFile file(filePath);
if (file.open(QIODevice::WriteOnly)) {
file.write(QJsonDocument(themeJson).toJson(QJsonDocument::Indented));
file.write(serializeNormalizedThemeJson(themeJson));
file.close();
}