6 Commits
Author SHA1 Message Date
rickyandClaude Opus 5.5 e04cd336f8 2026.11.6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:21:38 -05:00
rickyandClaude Opus 5.5 b241f75cc9 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 <noreply@anthropic.com>
2026-11-06 16:21:38 -05:00
ricky 3df55bc97f 2026.11.5 2026-11-04 15:04:19 -05:00
rickyandClaude Opus 5.5 2f58a1c7f7 Keep text readable on locked estimates and invoices
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 15:04:19 -05:00
ricky 9a2f1fe3b8 2026.11.4 2026-11-03 21:57:00 -05:00
rickyandClaude Opus 5.5 786bb499b2 Darken the box behind the tab scroll arrows
Redmine colours it white, which showed around the arrows when tabs don't fit,
e.g. Administration > Settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:57:00 -05:00
2 changed files with 13 additions and 1 deletions

No files matched your search

+12
View File
@@ -8,6 +8,13 @@ html.dark-mode {
color-scheme: dark; color-scheme: dark;
} }
/* Light pages stay light even when the device is dark. The head's <meta name="color-scheme" content="light dark">
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 /* 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. */ backgrounds, 3-4 borders and 5-9 text. */
html.dark-mode, html.dark-mode,
@@ -196,6 +203,9 @@ html.dark-mode .tooltip:hover {
/* Sticky issue title shown when scrolling down an issue (white in core) */ /* Sticky issue title shown when scrolling down an issue (white in core) */
html.dark-mode div#sticky-issue-header { background-color: var(--oc-white); color: var(--oc-gray-9); } html.dark-mode div#sticky-issue-header { background-color: var(--oc-white); color: var(--oc-gray-9); }
/* The box behind the tab scroll arrows, shown when tabs don't fit, e.g. Administration > Settings (white in core) */
html.dark-mode div.tabs-buttons { background: var(--oc-white); }
/* Text formatting toolbar: its icons are dark drawings, so the buttons are inverted (interface icons only, /* Text formatting toolbar: its icons are dark drawings, so the buttons are inverted (interface icons only,
never pictures); the background and border are set so they come out as the dark ones after inverting */ never pictures); the background and border are set so they come out as the dark ones after inverting */
html.dark-mode .jstElements button { html.dark-mode .jstElements button {
@@ -325,6 +335,8 @@ html.dark-mode .qbo-field :is(label, .qbo-label),
html.dark-mode :is(.qbo-address, .qbo-estimate-amount-value, .qbo-estimate-totals th, .qbo-estimate-lines td.qbo-line-subtotal-label) { color: #c0c2c7; } html.dark-mode :is(.qbo-address, .qbo-estimate-amount-value, .qbo-estimate-totals th, .qbo-estimate-lines td.qbo-line-subtotal-label) { color: #c0c2c7; }
html.dark-mode .qbo-field :is(input[type=text], input[type=date], textarea) { background: #191a1c; color: #d2d4d8; } html.dark-mode .qbo-field :is(input[type=text], input[type=date], textarea) { background: #191a1c; color: #d2d4d8; }
html.dark-mode .qbo-field :is(input[readonly], input[disabled]) { background: #2c2e32; color: #c0c2c7; } html.dark-mode .qbo-field :is(input[readonly], input[disabled]) { background: #2c2e32; color: #c0c2c7; }
/* Locked estimates/invoices: their disabled boxes keep readable text */
html.dark-mode .qbo-estimate-sheet[disabled] :is(input, textarea, select) { color: #c0c2c7; -webkit-text-fill-color: #c0c2c7; }
html.dark-mode .qbo-estimate-lines th { border-bottom-color: #3f4248; } html.dark-mode .qbo-estimate-lines th { border-bottom-color: #3f4248; }
html.dark-mode .qbo-estimate-lines td { border-bottom-color: #35373c; } html.dark-mode .qbo-estimate-lines td { border-bottom-color: #35373c; }
html.dark-mode .qbo-estimate-lines :is(input[type=text], textarea) { color: #d2d4d8; } html.dark-mode .qbo-estimate-lines :is(input[type=text], textarea) { color: #d2d4d8; }
+1 -1
View File
@@ -12,7 +12,7 @@ Redmine::Plugin.register :redmine_dark_mode do
name 'Redmine Dark Mode plugin' name 'Redmine Dark Mode plugin'
author 'Rick Barrette' author 'Rick Barrette'
description 'A dark mode for Redmine: follows the device by default, with a per-user choice and a toggle in the top menu' description 'A dark mode for Redmine: follows the device by default, with a per-user choice and a toggle in the top menu'
version '2026.11.3' version '2026.11.6'
url 'https://github.com/rickbarrette/redmine_dark_mode' url 'https://github.com/rickbarrette/redmine_dark_mode'
author_url 'https://barrettefabrication.com' author_url 'https://barrettefabrication.com'
requires_redmine version_or_higher: '7.0.0' requires_redmine version_or_higher: '7.0.0'