diff --git a/web/cgi-bin/horas/webdia.pl b/web/cgi-bin/horas/webdia.pl index 1d52a1154c..f47b40d576 100644 --- a/web/cgi-bin/horas/webdia.pl +++ b/web/cgi-bin/horas/webdia.pl @@ -59,6 +59,10 @@ sub htmlHead { background: $dialogbackground; } .contrastbg { background: white; } +PrintTag + + if (our $whitebground) { + print << "PrintTag"; \@media (prefers-color-scheme: dark) { body { background: black; @@ -72,7 +76,35 @@ sub htmlHead { background: #3F3F3F; color: white; } - } + } +PrintTag + } else { + print << "PrintTag"; + \@media (prefers-color-scheme: dark) { + body { + background: $dialogbackground; + color: black; + } + select { + background: lightgrey; + color: black; + } + input[type="select"] { + background: lightgrey; + color: black; + } + input[type="submit"] { + background: grey; + color: black; + } + input[type="text"] { + background: white; + color: black; + } +PrintTag + } + + print << "PrintTag"; $title $horasjs