2026-03-08 12:13:35 +01:00
|
|
|
pragma Singleton
|
|
|
|
|
import Quickshell
|
|
|
|
|
import Quickshell.Io
|
|
|
|
|
|
|
|
|
|
Singleton {
|
|
|
|
|
id: root
|
|
|
|
|
property alias config: settingsAdapter
|
|
|
|
|
FileView {
|
|
|
|
|
id: settingsView
|
|
|
|
|
path: "file:///home/lucy/.config/qs.json"
|
|
|
|
|
onAdapterUpdated: writeAdapter()
|
|
|
|
|
onDataChanged: writeAdapter()
|
|
|
|
|
adapter: JsonAdapter {
|
|
|
|
|
id: settingsAdapter
|
|
|
|
|
property int barHeight: 40
|
2026-03-08 13:44:57 +01:00
|
|
|
property int rounding: 16
|
2026-03-08 12:13:35 +01:00
|
|
|
property bool floating
|
|
|
|
|
property string font
|
2026-03-08 13:44:57 +01:00
|
|
|
property int fontSize: 14
|
2026-03-08 12:13:35 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|