Dark "Are you sure?" dialog on dark pages

rails-ujs confirmations (data-confirm) show a dark dialog in Gitea's colours while the page is dark,
instead of the browser's box drawn in the device's colours; OK carries on with the link, button or
form. Light pages keep the browser's box. RedmineDarkMode.confirm(message, onOk) does the same for
other scripts. The default mode is one setting (DEFAULT_MODE, Automatic).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-02 22:22:50 -05:00
1 parent ad2451129f
commit 885c4d2b3a
6 files changed
+120 -6

No files matched your search

+1
View File
@@ -15,3 +15,4 @@ en:
label_dark_mode_dark: "On (dark)"
label_dark_mode_switch_dark: "Switch to dark mode"
label_dark_mode_switch_light: "Switch to light mode"
button_dark_mode_ok: "OK"