add theme switcher
This commit is contained in:
parent
143889683b
commit
d69ec48728
9 changed files with 126 additions and 68 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue