diff --git a/adminer/include/design.inc.php b/adminer/include/design.inc.php index 9f16c7c2..d32e75e4 100644 --- a/adminer/include/design.inc.php +++ b/adminer/include/design.inc.php @@ -52,7 +52,11 @@ function page_header(string $title, string $error = "", $breadcrumb = array(), s echo "\n"; } foreach ($css as $url => $mode) { - echo "\n"; + $attrs = ($mode == 'dark' && !$dark + ? $media + : ($mode == 'light' && $has_dark ? " media='(prefers-color-scheme: light)'" : "") + ); + echo "\n"; } echo "\nbodyClass();