Merge pull request #1380 from marek-guran/material-theme

Dynamic Material Theme (Dark/Light)
This commit is contained in:
Bill Zimmerman
2023-08-30 01:24:44 -07:00
committed by GitHub
5 changed files with 1295 additions and 6 deletions

View File

@@ -190,11 +190,13 @@ function DisplaySystem(&$extraFooterScripts)
// theme options
$themes = [
"default" => "RaspAP (default)",
"hackernews" => "HackerNews"
"hackernews" => "HackerNews",
"material-light" => "Material"
];
$themeFiles = [
"default" => "custom.php",
"hackernews" => "hackernews.css"
"hackernews" => "hackernews.css",
"material-light" => "material-light.php"
];
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
@@ -224,6 +226,6 @@ function DisplaySystem(&$extraFooterScripts)
"hostapd_status",
"hostapd_led",
"themes",
"selectedTheme"
"selectedTheme"
));
}