Skip to content

A live bird collage card for your Home Assistant dashboard.

Color scheme added to phpsysinfo

Alexandre6e28c3a268d6
diff --git a/templates/index_bootstrap.html b/templates/index_bootstrap.html
index 90b1b9c7..0869cbd8 100644
--- a/templates/index_bootstrap.html
+++ b/templates/index_bootstrap.html
@@ -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;">