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-21 21:58:46 +01:00
|
|
|
property alias currentWall: settingsAdapter.currentWall
|
|
|
|
|
|
2026-01-14 23:18:18 +01:00
|
|
|
FileView {
|
|
|
|
|
id: settingsView
|
|
|
|
|
|
|
|
|
|
path: "/home/lucy/.config/quickshell/settings/config.json"
|
2026-01-26 18:20:36 +01:00
|
|
|
watchChanges: true
|
|
|
|
|
onFileChanged: reload()
|
2026-01-14 23:18:18 +01:00
|
|
|
|
2026-01-26 18:20:36 +01:00
|
|
|
onAdapterUpdated: writeAdapter()
|
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-26 18:20:36 +01:00
|
|
|
property var barHeight: 20
|
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-14 23:18:18 +01:00
|
|
|
property var rounding: 10
|
2026-01-21 21:58:46 +01:00
|
|
|
property var wallDir: "file:///home/lucy/.walls/"
|
2026-01-26 18:20:36 +01:00
|
|
|
property bool floating: false
|
2026-01-15 01:13:17 +01:00
|
|
|
property int paddingTop: 10
|
|
|
|
|
property int paddingSides: 10
|
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-14 23:18:18 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|