1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Re-work theme approach to watch a file from matugen-worker

This commit is contained in:
bbedward
2025-09-25 16:49:57 -04:00
parent 185ee20f2d
commit a6a41d4de1
4 changed files with 45 additions and 211 deletions

View File

@@ -201,6 +201,9 @@ build_once() {
echo "$JSON" | grep -q '"primary"' || { echo "matugen JSON missing primary" >&2; return 2; }
printf "%s" "$JSON" > "$LAST_JSON"
# Write JSON for Theme.qml FileView to watch
printf "%s" "$JSON" > "$STATE_DIR/dms-colors.json"
if [ "$mode" = "light" ]; then
SECTION=$(echo "$JSON" | sed -n 's/.*"light":{\([^}]*\)}.*/\1/p')