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 watchChanges: true
onAdapterUpdated: reload() onAdapterUpdated: reload()
onAdapterChanged: reload() onAdapterChanged: reload()
blockLoading: true // colors resolved before first paint, no flash of defaults blockLoading: true
property alias base00: palette.base00 property alias base00: palette.base00
property alias base01: palette.base01 property alias base01: palette.base01
property alias base02: palette.base02 property alias base02: palette.base02
@ -51,7 +51,6 @@ Singleton {
JsonAdapter { JsonAdapter {
id: palette id: palette
// strings, not colors — QML coerces "#rrggbb" -> color at the readonly props above
property string base00 property string base00
property string base01 property string base01
property string base02 property string base02

View file

@ -36,6 +36,9 @@ IpcHandler {
function floating(toggle: bool) { function floating(toggle: bool) {
Config.floating = toggle Config.floating = toggle
} }
function reload(hard: bool) {
Quickshell.reload(hard)
}
function setWall(newWall: string) { function setWall(newWall: string) {
if (newWall.startsWith("/")) { if (newWall.startsWith("/")) {

View file

@ -4,7 +4,7 @@ import QtQuick
Text { Text {
font.family: "Material Symbols Rounded" font.family: "Material Symbols Rounded"
color: Colors.base07 color: Colors.base05
font.pixelSize: Config.iconSize font.pixelSize: Config.iconSize
property bool fill: true property bool fill: true
renderType: Text.NativeRendering renderType: Text.NativeRendering

View file

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