31 lines
686 B
QML
31 lines
686 B
QML
pragma Singleton
|
|
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
|
|
Singleton {
|
|
|
|
property alias appCount: adapter.appCount
|
|
property alias baseBgColor: adapter.baseBgColor
|
|
property alias accentColor: adapter.accentColor
|
|
|
|
FileView {
|
|
id: root
|
|
property var configRoot: Quickshell.env("HOME")
|
|
|
|
path: configRoot + "/.config/z-bar/config.json"
|
|
|
|
watchChanges: true
|
|
onFileChanged: reload()
|
|
|
|
onAdapterChanged: writeAdapter()
|
|
|
|
JsonAdapter {
|
|
id: adapter
|
|
property int appCount: 20
|
|
property string baseBgColor: "#801a1a1a"
|
|
property AccentColor accentColor: AccentColor {}
|
|
}
|
|
}
|
|
}
|