From cd5b94da94294ba87b2e5946f65abadbc88f9eb3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 00:54:42 +0000 Subject: [PATCH] Rename custom palette files and hard-code theme style registration Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- src/index.php | 23 ++++++------------- templates/README.md | 8 +++---- ...{theme_custom_dark.css => dark.custom.css} | 2 +- ...heme_custom_light.css => light.custom.css} | 2 +- 4 files changed, 13 insertions(+), 22 deletions(-) rename templates/{theme_custom_dark.css => dark.custom.css} (99%) rename templates/{theme_custom_light.css => light.custom.css} (99%) diff --git a/src/index.php b/src/index.php index 6008deb..6ce67b6 100644 --- a/src/index.php +++ b/src/index.php @@ -88,22 +88,6 @@ $templatePath = 'media/templates/site/mokocassiopeia'; // Core template CSS $wa->useStyle('template.base'); // css/template.css -// Theme palettes (light + dark) -// Always load standard theme, then load custom if selected -$wa->useStyle('template.light.standard'); -$wa->useStyle('template.dark.standard'); - -// Load custom or alternative themes if selected -if ($params_LightColorName === 'custom') { - $wa->useStyle('template.light.custom'); -} - -if ($params_DarkColorName === 'custom') { - $wa->useStyle('template.dark.custom'); -} elseif ($params_DarkColorName === 'alternative') { - $wa->useStyle('template.dark.alternative'); -} - // Scripts $wa->useScript('template.js'); @@ -251,6 +235,13 @@ $wa->useStyle('template.user'); // css/user.css + + + + + + +