Small changes to system.php

Removed dark theme since it will be enabled by switch at top bar
This commit is contained in:
Marek Guráň 2023-08-28 23:12:04 +02:00 committed by GitHub
parent aec2e3b7bf
commit 3cf88d98b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,17 +191,18 @@ function DisplaySystem(&$extraFooterScripts)
$themes = [
"default" => "RaspAP (default)",
"hackernews" => "HackerNews",
"material-light" => "Material (light)",
"material-dark" => "Material (dark)"
"material-light" => "Material (Use dark colors)"
];
$themeFiles = [
"default" => "custom.php",
"hackernews" => "hackernews.css",
"material-light" => "material-light.php",
"material-dark" => "material-dark.php"
"material-light" => "material-light.php"
];
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
// widget options
$widgetOpt = $_SESSION["widgetOpt"];
$extraFooterScripts[] = array('src'=>'dist/huebee/huebee.pkgd.min.js', 'defer'=>false);
$extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false);
@ -228,6 +229,7 @@ function DisplaySystem(&$extraFooterScripts)
"hostapd_status",
"hostapd_led",
"themes",
"selectedTheme"
"selectedTheme",
"widgetOpt"
));
}