add ipc to reload colors
This commit is contained in:
parent
9c39259de4
commit
6fc6f8d300
@ -6,9 +6,15 @@ import Quickshell.Io
|
||||
Singleton {
|
||||
id: root
|
||||
property alias colors: loader
|
||||
function reload() {
|
||||
loader.reload();
|
||||
}
|
||||
|
||||
FileView {
|
||||
id: loader
|
||||
watchChanges: true
|
||||
onFileChanged: this.reload()
|
||||
onAdapterUpdated: this.reload()
|
||||
|
||||
// create color properties, initialize them to black and helper color array
|
||||
property var colors: text().split('\n')
|
||||
|
||||
10
modules/ipc/Ipc.qml
Normal file
10
modules/ipc/Ipc.qml
Normal file
@ -0,0 +1,10 @@
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs
|
||||
|
||||
IpcHandler {
|
||||
target: "colors"
|
||||
function reload() {
|
||||
ThemeLoader.reload()
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user