]> git.joonet.de Git - adminer.git/commitdiff
CSS: Set also light color-scheme
authorJakub Vrana <jakub@vrana.cz>
Mon, 17 Mar 2025 06:14:18 +0000 (07:14 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 17 Mar 2025 06:14:26 +0000 (07:14 +0100)
adminer/include/design.inc.php

index 0df2d98bfab9d7ee385e3bddc0cc60faab76cd63..97c5eafa54eae205e73d66b93e4571229e88ea8c 100644 (file)
@@ -35,7 +35,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
        if ($dark !== false) {
                echo "<link rel='stylesheet'" . ($dark ? "" : " media='(prefers-color-scheme: dark)'") . " href='../adminer/static/dark.css'>\n";
        }
-       echo "<meta name='color-scheme' content='" . ($dark !== false ? ($dark ? "" : "light ") . "dark" : "") . "'>\n";
+       echo "<meta name='color-scheme' content='" . ($dark === null ? "light dark" : ($dark ? "dark" : "light")) . "'>\n";
        // this is matched by compile.php
        echo script_src("../adminer/static/functions.js");
        echo script_src("static/editing.js");