Fix settings dark mode toggle and center it (#197) #199

Merged
fen merged 1 commits from fix-197 into dev 2026-09-10 17:16:38 +00:00
1 Commits
Author SHA1 Message Date
fen 8042116a69 Fix settings dark mode toggle double-binding and center it (#197)
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 50s
topbar.js binds click handlers to every .dark-toggle, including the
settings one; settings.js then also wired a delegation that re-clicked
the topbar button, so each click flipped dark mode twice (net no-op).
Mark buttons as wired in topbar.js and only add a fallback handler in
settings.js when topbar.js did not run.

CSS: center the toggle horizontally under the Settings title with auto
margins, matching .settings-body padding.

Closes #197
2026-09-10 12:10:00 -05:00