2026-01-14 23:18:18 +01:00
|
|
|
pragma Singleton
|
|
|
|
|
pragma ComponentBehavior: Bound
|
|
|
|
|
import QtQuick
|
|
|
|
|
import Quickshell
|
|
|
|
|
import Quickshell.Io
|
|
|
|
|
|
|
|
|
|
Singleton {
|
2026-01-21 21:58:46 +01:00
|
|
|
id: root
|
2026-01-14 23:18:18 +01:00
|
|
|
property alias config: settingsAdapter
|
2026-01-27 10:27:00 +01:00
|
|
|
onConfigChanged: settingsView.writeAdapter()
|
2026-01-14 23:18:18 +01:00
|
|
|
FileView {
|
|
|
|
|
id: settingsView
|
|
|
|
|
|
2026-01-27 10:27:00 +01:00
|
|
|
path: "/home/lucy/.config/qs.json"
|
2026-01-26 18:20:36 +01:00
|
|
|
watchChanges: true
|
2026-01-27 10:27:00 +01:00
|
|
|
onAdapterUpdated: writeAdapter()
|
2026-01-26 18:20:36 +01:00
|
|
|
onFileChanged: reload()
|
2026-01-14 23:18:18 +01:00
|
|
|
adapter: JsonAdapter {
|
|
|
|
|
id: settingsAdapter
|
2026-01-26 18:20:36 +01:00
|
|
|
property var margins: 20
|
2026-01-17 20:40:19 +01:00
|
|
|
property var currentWall: ""
|
2026-01-27 00:55:56 +01:00
|
|
|
property var barHeight: 30
|
2026-01-23 20:12:42 +01:00
|
|
|
property var font: ""
|
2026-01-16 15:15:44 +01:00
|
|
|
property var fontSize: 14
|
2026-01-21 21:58:46 +01:00
|
|
|
property var wallDir: "file:///home/lucy/.walls/"
|
2026-01-27 10:27:00 +01:00
|
|
|
property bool floating: false
|
2026-01-19 00:48:57 +01:00
|
|
|
property var generateScheme: true
|
2026-01-21 22:25:30 +01:00
|
|
|
property bool wallSwitcherShown: false
|
2026-01-26 18:20:36 +01:00
|
|
|
property int fontWeight: 600
|
|
|
|
|
property bool showScreenCorners: true
|
|
|
|
|
property int screenCornerRadius: 10
|
|
|
|
|
property double translucency: 1
|
|
|
|
|
property bool blackScreenCorners: true
|
2026-01-27 10:49:01 +01:00
|
|
|
property bool settingsShown: true
|
2026-01-14 23:18:18 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|