make ipc handler to reload qs

This commit is contained in:
lucy 2026-07-26 15:24:46 +02:00
commit d96cb88df2
4 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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("/")) {

View file

@ -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

View file

@ -5,5 +5,5 @@ import qs.settings
Text {
font.family: Config.font
font.pixelSize: Config.fontSize
color: Colors.base07
color: Colors.base05
}