From f3090977c64192c23cdee192124fcaf5565a4630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20S=C3=B6the?= Date: Sat, 7 Sep 2024 05:09:40 +0200 Subject: [PATCH] Add automatic light/dark option for the colorblind theme (#31997) The normal themes already have a variant which automatically chooses light/dark mode based on the browser. This PR adds the same variant, but for the colorblind themes. --- web_src/css/themes/theme-gitea-auto-protanopia-deuteranopia.css | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 web_src/css/themes/theme-gitea-auto-protanopia-deuteranopia.css diff --git a/web_src/css/themes/theme-gitea-auto-protanopia-deuteranopia.css b/web_src/css/themes/theme-gitea-auto-protanopia-deuteranopia.css new file mode 100644 index 00000000000..bcbf67d13dc --- /dev/null +++ b/web_src/css/themes/theme-gitea-auto-protanopia-deuteranopia.css @@ -0,0 +1,2 @@ +@import "./theme-gitea-light-protanopia-deuteranopia.css" (prefers-color-scheme: light); +@import "./theme-gitea-dark-protanopia-deuteranopia.css" (prefers-color-scheme: dark);