make ipc handler to reload qs
This commit is contained in:
parent
eb93ad8d2c
commit
d96cb88df2
4 changed files with 6 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ Singleton {
|
|||
watchChanges: true
|
||||
onAdapterUpdated: reload()
|
||||
onAdapterChanged: reload()
|
||||
blockLoading: true // colors resolved before first paint, no flash of defaults
|
||||
blockLoading: true
|
||||
property alias base00: palette.base00
|
||||
property alias base01: palette.base01
|
||||
property alias base02: palette.base02
|
||||
|
|
@ -51,7 +51,6 @@ Singleton {
|
|||
|
||||
JsonAdapter {
|
||||
id: palette
|
||||
// strings, not colors — QML coerces "#rrggbb" -> color at the readonly props above
|
||||
property string base00
|
||||
property string base01
|
||||
property string base02
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@ IpcHandler {
|
|||
function floating(toggle: bool) {
|
||||
Config.floating = toggle
|
||||
}
|
||||
function reload(hard: bool) {
|
||||
Quickshell.reload(hard)
|
||||
}
|
||||
|
||||
function setWall(newWall: string) {
|
||||
if (newWall.startsWith("/")) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import QtQuick
|
|||
|
||||
Text {
|
||||
font.family: "Material Symbols Rounded"
|
||||
color: Colors.base07
|
||||
color: Colors.base05
|
||||
font.pixelSize: Config.iconSize
|
||||
property bool fill: true
|
||||
renderType: Text.NativeRendering
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ import qs.settings
|
|||
Text {
|
||||
font.family: Config.font
|
||||
font.pixelSize: Config.fontSize
|
||||
color: Colors.base07
|
||||
color: Colors.base05
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue