From dc5b59c973af6ee57f0def64506ef957811d28b2 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sun, 8 Mar 2026 01:02:04 +0000
Subject: [PATCH] Convert theme stylesheets to use Joomla Web Asset Manager
Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
---
src/index.php | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/index.php b/src/index.php
index 2e32146..ef63797 100644
--- a/src/index.php
+++ b/src/index.php
@@ -227,6 +227,13 @@ if ($this->params->get('fA6KitCode')) {
$params_leftIcon = htmlspecialchars($this->params->get('drawerLeftIcon', 'fa-solid fa-chevron-left'), ENT_COMPAT, 'UTF-8');
$params_rightIcon = htmlspecialchars($this->params->get('drawerRightIcon', 'fa-solid fa-chevron-right'), ENT_COMPAT, 'UTF-8');
+// Load all theme palette stylesheets (static loading for theme switcher compatibility)
+$wa->useStyle('template.light.standard'); // css/theme/light.standard.css
+$wa->useStyle('template.dark.standard'); // css/theme/dark.standard.css
+$wa->useStyle('template.light.custom'); // css/theme/light.custom.css
+$wa->useStyle('template.dark.custom'); // css/theme/dark.custom.css
+$wa->useStyle('template.dark.alternative'); // css/theme/dark.alternative.css
+
$wa->useStyle('template.user'); // css/user.css
?>
@@ -235,13 +242,6 @@ $wa->useStyle('template.user'); // css/user.css
-
-
-
-
-
-
-