aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AGENTS.md3
-rwxr-xr-xinstall.sh6
2 files changed, 9 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index c25f2db..1982427 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -142,6 +142,9 @@ substituted and what is deliberately left as upstream drew it.
names a scheme; qt6ct never passes the portal's `prefer-dark` to Qt. Either
alone left kcalc white. `install.sh` installs a generated `udt.colors` into
`~/.local/share/color-schemes/` and sets both keys with `kwriteconfig6`.
+Any KDE app that calls `KColorSchemeManager::activateScheme` on its own
+setting can delete `ColorScheme` again: Haruna does at every start unless its
+`haruna.conf` names `udt`, so `install.sh` pins that too.
**Qt apps only read a theme at startup**, so a running one keeps the old
colours until restarted. `install.sh` cannot signal them and does not try.
diff --git a/install.sh b/install.sh
index 849d770..1c28ce2 100755
--- a/install.sh
+++ b/install.sh
@@ -242,6 +242,12 @@ install -Dm644 "$repo/templates/kde/udt.colors" \
if command -v kwriteconfig6 >/dev/null 2>&1; then
kwriteconfig6 --file kdeglobals --group UiSettings --key ColorScheme udt
kwriteconfig6 --file kdeglobals --group KDE --key widgetStyle kvantum-dark
+ # Haruna activates its own colour scheme setting at startup, and its
+ # default deletes UiSettings ColorScheme from kdeglobals, which turns
+ # kcalc light again. Pinned to udt, it rewrites the same value instead.
+ if command -v haruna >/dev/null 2>&1; then
+ kwriteconfig6 --file haruna/haruna.conf --group General --key ColorScheme udt
+ fi
fi
}