add theme switcher

This commit is contained in:
lucy 2026-09-10 21:37:33 +02:00
commit d69ec48728
9 changed files with 126 additions and 68 deletions

View file

@ -18,12 +18,17 @@ Singleton {
onFileChanged: {
this.reload();
}
onAdapterUpdated: {
writeAdapter();
reload();
}
onLoadFailed: error => {
if (error === FileViewError.FileNotFound)
writeAdapter();
}
adapter: JsonAdapter {
id: cfg
property bool themeSwitcherVisible: false
property JsonObject appearance: JsonObject {
property string font: "Iosevka"
property int fontSize: 14