move things around, steal things from noctalia and new settings
This commit is contained in:
parent
819aa5d242
commit
7c5d08eb3f
@ -17,7 +17,7 @@ Variants {
|
|||||||
bottom: true
|
bottom: true
|
||||||
}
|
}
|
||||||
margins {
|
margins {
|
||||||
top: Settings.config.barHeight + Settings.config.margins + 10
|
top: Settings.config.floating ? Settings.config.barHeight + Settings.config.margins + 10 : Settings.config.barHeight + 10
|
||||||
right: 10
|
right: 10
|
||||||
left: 10
|
left: 10
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,26 +7,25 @@ import Quickshell.Io
|
|||||||
Singleton {
|
Singleton {
|
||||||
id: root
|
id: root
|
||||||
property alias config: settingsAdapter
|
property alias config: settingsAdapter
|
||||||
property alias currentWall: settingsAdapter.currentWall
|
onConfigChanged: {
|
||||||
|
settingsView.writeAdapter();
|
||||||
|
}
|
||||||
FileView {
|
FileView {
|
||||||
id: settingsView
|
id: settingsView
|
||||||
|
|
||||||
path: "/home/lucy/.config/quickshell/settings/config.json"
|
path: "/home/lucy/.config/quickshell/settings/config.json"
|
||||||
watchChanges: true
|
watchChanges: true
|
||||||
onFileChanged: reload()
|
onFileChanged: reload()
|
||||||
|
|
||||||
onAdapterUpdated: writeAdapter()
|
|
||||||
adapter: JsonAdapter {
|
adapter: JsonAdapter {
|
||||||
id: settingsAdapter
|
id: settingsAdapter
|
||||||
property var margins: 20
|
property var margins: 20
|
||||||
property var currentWall: ""
|
property var currentWall: ""
|
||||||
property var barHeight: 20
|
property var barHeight: 30
|
||||||
property var font: ""
|
property var font: ""
|
||||||
property var fontSize: 14
|
property var fontSize: 14
|
||||||
property var rounding: 10
|
property var rounding: 10
|
||||||
property var wallDir: "file:///home/lucy/.walls/"
|
property var wallDir: "file:///home/lucy/.walls/"
|
||||||
property bool floating: false
|
property bool floating: true
|
||||||
property int paddingTop: 10
|
property int paddingTop: 10
|
||||||
property int paddingSides: 10
|
property int paddingSides: 10
|
||||||
property var generateScheme: true
|
property var generateScheme: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user