aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-02-12 19:52:23 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-02-12 19:52:23 +0000
commit227d06ab4a19c8a17603b29d9f3a4b38de71e856 (patch)
treeb20cc52a3a019c50abe79afd9d2adeb88c1acf04 /scripts
parent42803a92d5002937c165cae32a1433c4b76c9c93 (diff)
downloadpmwiki.svn-227d06ab4a19c8a17603b29d9f3a4b38de71e856.tar.bz2
Enable 3-way theme toggle, Light, Dark and Auto.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4640 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts')
-rw-r--r--scripts/utils.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/utils.php b/scripts/utils.php
index d73fd3d5..dc40ae11 100644
--- a/scripts/utils.php
+++ b/scripts/utils.php
@@ -50,7 +50,12 @@ function PmUtilsJS() {
'copycode' => $cc,
'toggle' => IsEnabled($ToggleNextSelector, 0),
'localtimes' => IsEnabled($EnableLocalTimes, 0),
- 'darktheme' => IsEnabled($EnableDarkThemeToggle, 0),
+ 'darktheme' => array(
+ 'enable'=> IsEnabled($EnableDarkThemeToggle, 0),
+ 'label'=> XL('Toggle theme'),
+ 'currently'=> XL('Currently:'),
+ 'modes'=> array( XL('Light'), XL('Dark'), XL('Auto'), ),
+ ),
'rediquiet' => IsEnabled($EnableRedirectQuiet, 0),
);
$enabled = $PmTOC['Enable'];