From 6a91c7b99010543a35391b59180ea35dcb8a7652 Mon Sep 17 00:00:00 2001 From: AteebXYZ <130910481+AteebXYZ@users.noreply.github.com> Date: Tue, 10 Feb 2026 13:37:58 +0300 Subject: [PATCH] fix: apply mode substitution after dynamic template fill (#84) --- src/caelestia/utils/theme.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/caelestia/utils/theme.py b/src/caelestia/utils/theme.py index 91d48a9..66665a8 100644 --- a/src/caelestia/utils/theme.py +++ b/src/caelestia/utils/theme.py @@ -58,8 +58,8 @@ def gen_replace_dynamic(colours: dict[str, str], template: Path, mode: str) -> s colours_dyn = get_dynamic_colours(colours) template_content = template.read_text() - template_filled = re.sub(dotField, fill_colour, template_content) - template_filled = re.sub(modeField, mode, template_content) + template_filled = re.sub(dotField, fill_colour, template_content) + template_filled = re.sub(modeField, mode, template_filled) return template_filled