mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
progress save
This commit is contained in:
parent
fa7d012416
commit
d32bedda31
9 changed files with 293 additions and 249 deletions
|
|
@ -7,13 +7,26 @@ import Quickshell.Io
|
|||
Singleton {
|
||||
property alias settings: jsonAdapter.settings
|
||||
property alias sizing: jsonAdapter.sizing
|
||||
property alias colors: jsonAdapter.colors
|
||||
|
||||
property QtObject colors: QtObject {
|
||||
property color surface: Qt.rgba(1.0, 1.0, 1.0, 1.0)
|
||||
property color surface_translucent: Qt.rgba(0.0, 0.0, 0.0, 0.15)
|
||||
property color surface_container: Qt.rgba(0.25, 0.25, 0.25, 1.0)
|
||||
property color surface_container_translucent: Qt.rgba(0.25, 0.25, 0.25, 0.25)
|
||||
property color highlight: Qt.rgba(1.0, 1.0, 1.0, 0.85)
|
||||
// property color primary: "#2EADC6"
|
||||
property color active: Qt.rgba(1.0, 1.0, 1.0, 1.0)
|
||||
property color active_translucent: Qt.rgba(1.0, 1.0, 1.0, 0.15)
|
||||
property color border_translucent: Qt.rgba(1.0, 1.0, 1.0, 0.05)
|
||||
property color inactive: Qt.rgba(0.25, 0.25, 0.25, 1.0)
|
||||
property color inactive_translucent: Qt.rgba(0.25, 0.25, 0.25, 0.15)
|
||||
}
|
||||
|
||||
FileView {
|
||||
path: `${Quickshell.dataPath("settings")}/quickshell/settings.json`
|
||||
watchChanges: true
|
||||
// onFileChanged: reload()
|
||||
// onAdapterUpdated: writeAdapter()
|
||||
onFileChanged: reload()
|
||||
onAdapterUpdated: writeAdapter()
|
||||
blockLoading: true
|
||||
|
||||
JsonAdapter {
|
||||
|
|
@ -28,20 +41,6 @@ Singleton {
|
|||
property JsonObject sizing: JsonObject {
|
||||
property int barHeight: 25
|
||||
}
|
||||
|
||||
property JsonObject colors: JsonObject {
|
||||
property color surface: Qt.rgba(1.0, 1.0, 1.0, 1.0)
|
||||
property color surface_translucent: Qt.rgba(0.0, 0.0, 0.0, 0.15)
|
||||
property color surface_container: Qt.rgba(0.25, 0.25, 0.25, 1.0)
|
||||
property color surface_container_translucent: Qt.rgba(0.25, 0.25, 0.25, 0.25)
|
||||
property color highlight: Qt.rgba(1.0, 1.0, 1.0, 0.85)
|
||||
// property color primary: "#2EADC6"
|
||||
property color active: Qt.rgba(1.0, 1.0, 1.0, 1.0)
|
||||
property color active_translucent: Qt.rgba(1.0, 1.0, 1.0, 0.15)
|
||||
property color border_translucent: Qt.rgba(1.0, 1.0, 1.0, 0.05)
|
||||
property color inactive: Qt.rgba(0.25, 0.25, 0.25, 1.0)
|
||||
property color inactive_translucent: Qt.rgba(0.25, 0.25, 0.25, 0.15)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue