From b241f75cc9f76d01d618e36660e85ab30ce691e2 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 6 Nov 2026 16:21:38 -0500 Subject: [PATCH] Keep checkboxes light on light pages With Redmine set to Light and the device dark, the color-scheme meta let the browser draw checkboxes, radio buttons and scrollbars dark. Light pages now pin color-scheme: light. Co-Authored-By: Claude Opus 5.5 --- assets/stylesheets/dark_mode.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/stylesheets/dark_mode.css b/assets/stylesheets/dark_mode.css index 16a917a..73e4a62 100644 --- a/assets/stylesheets/dark_mode.css +++ b/assets/stylesheets/dark_mode.css @@ -8,6 +8,13 @@ html.dark-mode { color-scheme: dark; } +/* Light pages stay light even when the device is dark. The head's + otherwise lets the browser draw its own controls (checkboxes, radio buttons, scrollbars) in the device's dark + style on a page the user set to Light. */ +html:not(.dark-mode) { + color-scheme: light; +} + /* Dark palette: Gitea's dark theme colours (theme-gitea-dark.css) on Open Color's scales, where 0-2 are backgrounds, 3-4 borders and 5-9 text. */ html.dark-mode,