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:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user