From 15d9d2e8946a235c2c17ebb2048c20658a44cd68 Mon Sep 17 00:00:00 2001 From: Saiyed Shizain Date: Fri, 11 Sep 2026 18:42:23 +0530 Subject: feat: add matugen/noctalia v5 color template support - Add MatugenColors struct reading from ~/.cache/pomoru/colors.json using flat snake_case keys rendered by noctalia v5's template engine - Rename old struct to LegacyNoctaliaColors (kept for backward compat) - Implement priority chain: matugen cache > legacy colors.json > defaults - Fix parse_hex_color to use trim_start_matches instead of fixed-length check, accepting both '#RRGGBB' and 'RRGGBB' formats - Add assets/noctalia/colors-template.json: noctalia template file using {{colors..default.hex}} token syntax - Add assets/noctalia/templates.toml: drop-in user-template config snippet for ~/.config/noctalia/templates.toml --- assets/noctalia/colors-template.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 assets/noctalia/colors-template.json (limited to 'assets/noctalia/colors-template.json') diff --git a/assets/noctalia/colors-template.json b/assets/noctalia/colors-template.json new file mode 100644 index 0000000..d70e6ff --- /dev/null +++ b/assets/noctalia/colors-template.json @@ -0,0 +1,6 @@ +{ + "primary": "{{colors.primary.default.hex}}", + "on_surface_variant": "{{colors.on_surface_variant.default.hex}}", + "surface_container": "{{colors.surface_container.default.hex}}", + "on_surface": "{{colors.on_surface.default.hex}}" +} -- cgit v1.2.3