Feature proposal : darkmode (#85)
* Create dark-style.css * Add call to get_color_scheme * Add call to get_color_scheme * Create get_color_scheme function * Add selection box in config.php * Accept both lower and uppercase COLOR_SCHEME * Add COLOR_SCHEME * Add COLOR_SCHEME * Change birdnet.conf after color scheme selection * Move css to static to enable it * Adapt css location to static * Improve opacity value * Fix logo background issues on smaller screens * Avoid overlap of logos * Ensure clean look (same margin as before but different location) * Default background as transparent to avoid white on white * Avoid black on dark ; improve readability * Last element of green is homogenized to grayscale * Enable site reload after color_scheme change
This commit is contained in:
+2
-1
@@ -6,6 +6,7 @@ $_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);
|
||||
require_once 'scripts/common.php';
|
||||
$config = get_config();
|
||||
$site_name = get_sitename();
|
||||
$color_scheme = get_color_scheme();
|
||||
set_timezone();
|
||||
|
||||
?>
|
||||
@@ -13,7 +14,7 @@ set_timezone();
|
||||
<html lang="en">
|
||||
<title><?php echo $site_name; ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="style.css?v=<?php echo date ('n.d.y', filemtime('style.css')); ?>">
|
||||
<link rel="stylesheet" href="<?php echo $color_scheme . '?v=' . date('n.d.y', filemtime($color_scheme)); ?>">
|
||||
<link rel="stylesheet" type="text/css" href="static/dialog-polyfill.css" />
|
||||
<body>
|
||||
<div class="banner">
|
||||
|
||||
Reference in New Issue
Block a user