mirror of
https://github.com/pi-hole/web.git
synced 2026-04-22 09:48:56 +01:00
Added the option for an automatic dark mode based on the device status
Signed-off-by: = <9060360+AlexLamond@users.noreply.github.com> Signed-off-by: Alex Lamond <9060360+AlexLamond@users.noreply.github.com>
This commit is contained in:
@@ -16,6 +16,8 @@ $available_themes = array();
|
||||
$available_themes["default-light"] = array("Pi-hole default theme (light, default)", false, "default-light");
|
||||
$available_themes["default-dark"] = array("Pi-hole midnight theme (dark)", true, "default-dark");
|
||||
$available_themes["default-darker"] = array("Pi-hole deep-midnight theme (dark)", true, "default-darker");
|
||||
// Option to have the theme go with the device dark mode setting, always set the background to black to avoid flashing
|
||||
$available_themes["custom-auto"] = array("Pi-hole auto theme (light/dark)", true, "custom-auto");
|
||||
|
||||
$webtheme = "";
|
||||
// Try to load theme settings from setupVars.conf
|
||||
@@ -45,4 +47,5 @@ function theme_selection() {
|
||||
<label for="webtheme_<?php echo $key; ?>"><strong><?php echo $value[0]; ?></strong></label></div><?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user