From d96cb88df20494374a41121e56e64113e61df622 Mon Sep 17 00:00:00 2001 From: lucy Date: Sun, 26 Jul 2026 15:24:46 +0200 Subject: [PATCH] make ipc handler to reload qs --- Colors.qml | 3 +-- modules/ipc/Ipc.qml | 3 +++ widgets/MaterialIcon.qml | 2 +- widgets/StyledText.qml | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Colors.qml b/Colors.qml index ed31b48..541f5b5 100644 --- a/Colors.qml +++ b/Colors.qml @@ -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 diff --git a/modules/ipc/Ipc.qml b/modules/ipc/Ipc.qml index 3abb6eb..e7f74a4 100644 --- a/modules/ipc/Ipc.qml +++ b/modules/ipc/Ipc.qml @@ -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("/")) { diff --git a/widgets/MaterialIcon.qml b/widgets/MaterialIcon.qml index c7e8a62..6db34c6 100644 --- a/widgets/MaterialIcon.qml +++ b/widgets/MaterialIcon.qml @@ -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 diff --git a/widgets/StyledText.qml b/widgets/StyledText.qml index 6ee74f2..8f3cd00 100644 --- a/widgets/StyledText.qml +++ b/widgets/StyledText.qml @@ -5,5 +5,5 @@ import qs.settings Text { font.family: Config.font font.pixelSize: Config.fontSize - color: Colors.base07 + color: Colors.base05 }