From ec4428377e3fb85f0139a7eda814fc080ea99d65 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Date: Sat, 10 Jan 2026 11:22:49 +0100 Subject: [PATCH] [android] Add support of dark mode for how to edit oh html file Signed-off-by: Jean-Baptiste --- data/opening_hours_how_to_edit.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/data/opening_hours_how_to_edit.html b/data/opening_hours_how_to_edit.html index e947ee3f1..b0e5b307c 100644 --- a/data/opening_hours_how_to_edit.html +++ b/data/opening_hours_how_to_edit.html @@ -11,6 +11,31 @@ .example { font-weight: bold; font-family: monospace; + + /* Dark mode support. */ + :root { + color-scheme: light dark; + --primary-color: black; + --secondary-color: #555555; + --link-color: #37653F; + --background-color: white; + --separator-color: #0e0e0e; + } + + @media screen and (prefers-color-scheme: dark) { + :root { + --primary-color: #b5b5b5; + --secondary-color: #858585; + --link-color: #659464; + --background-color: black; + --separator-color: #0a0a0a; + } + } + + html { + color: var(--secondary-color); + background-color: var(--background-color); + } }