From 4f01824832da8455a40446dc2ee949545f470ec5 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 11 Sep 2026 16:30:31 +0200 Subject: refactor(theme): read the palette from unified-desktop-theme Both components had their own copy of the Macchiato colours, and the second copy appeared the moment there was a second component. Editing the palette meant editing it in as many places as there were shells, and they would have drifted. They now read ~/.cache/wal/udt-palette.qml, which udt-accent generates from unified-desktop-theme's palette.rasi. The file is watched, so a palette change reaches a running shell in place, the same way the accent already did. What is left in Theme.qml is a fallback, used before the file has been read and on a machine where unified-desktop-theme is not installed, which is what keeps each directory runnable on its own. The file is parsed rather than imported: a generated QML singleton cannot be imported without a qmldir beside it, and the wal cache has no reason to carry one. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01G7NRsGyF9jGfPYS4zPqpN7 --- vm-manager/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vm-manager/README.md') diff --git a/vm-manager/README.md b/vm-manager/README.md index e11b7f2..1bc20ef 100644 --- a/vm-manager/README.md +++ b/vm-manager/README.md @@ -82,9 +82,11 @@ nowhere to go: the process output is not attached to a terminal. ## Theme -`Theme.qml` is the copy from `volume-osd` with three colours added for state -dots (green running, yellow transitional, red crashed). The accent still comes -from `~/.cache/wal/udt-accent.rasi` and still tracks the wallpaper. +`Theme.qml` carries only fallbacks. The palette comes from +`~/.cache/wal/udt-palette.qml`, generated by `udt-accent` from +unified-desktop-theme's `palette.rasi`, and is watched: editing the palette +there recolours a running drawer without restarting it. State dots use the +green, yellow and red from that palette. The frosting is Hyprland's, matched on this window's namespace: -- cgit v1.2.3