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
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
[General]
|
||||
barHeight=30
|
||||
floating=false
|
||||
font=Iosevka
|
||||
fontSize=14
|
||||
iconSize=16
|
||||
opacity=1
|
||||
primaryMon=eDP-1
|
||||
rounding=16
|
||||
showCorners=true
|
||||
wallDir=/home/lucy/.walls/
|
||||
wallpaper=/home/lucy/.walls/walkingcastle.png
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
"height": 34,
|
||||
"opacity": 1
|
||||
},
|
||||
"themeSwitcherVisible": false,
|
||||
"wallpaper": {
|
||||
"wallDir": "/home/lucy/.walls/",
|
||||
"wallpaper": "/home/lucy/.walls/Kita.png"
|
||||
|
|
|
|||
Loading…
Reference in a new issue