mirror of
https://github.com/rickbarrette/redmine_dark_mode.git
synced 2026-11-17 20:50:36 -05:00
A dark mode for Redmine 7 in Gitea's dark theme colours. It follows the device by default, with a per-user choice in My account (Automatic, Off, On) and a sun/moon toggle in the top bar. The mode is set before the page paints, and pictures are never inverted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 lines
153 B
Ruby
5 lines
153 B
Ruby
RedmineApp::Application.routes.draw do
|
|
# The top menu's toggle saves the user's choice
|
|
post 'dark_mode', to: 'dark_mode#update', as: 'dark_mode'
|
|
end
|