Color scheme added to phpsysinfo

This commit is contained in:
Alexandre
2024-06-22 17:27:02 +02:00
committed by GitHub
parent b22c253ba3
commit 6e28c3a268
+10 -2
View File
@@ -58,8 +58,16 @@
<div id="tempblock" style="display:none;">
<span class="lang_044"></span>
<select class="template" id="template">
<option value="green" selected="selected">green</option>
</select>
<?php
require_once '../BirdNET-Pi/scripts/common.php';
$config = get_config();
$color_scheme = $config['COLOR_SCHEME'];
if ($color_scheme == 'dark') {
echo '<option value="dark" selected="selected">Dark</option>';
} else {
echo '<option value="green" selected="selected">Green</option>';
}
?>
</select>
</div>
<div id="langblock" style="display:none;">