aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-nightmode.js
Commit message (Collapse)AuthorAgeLines
* Upgrade bootstrap and rewrite API (#230)HEADmasterOle Mathias Aa. Heggem2025-04-13-16/+16
|
* fix(nightmode): Respect user provided configuration for night mode if providedfix/night-mode-respect-user-configurationHåkon Solbjørg2023-04-02-0/+5
| | | | | | | | | | | | If user sets the cookie or URL query parameter for nightMode, we will respect that. Note that it is a bit cumbersome to _clear_ this configuration (afaik?) if it is set. This is also the case if the user toggles nightmode directly in Gondul (`n`). However, this last configuration is not persisted - so on a page reload, this setting is removed (no need to clear cookies/query params), and the system preference is again followed.
* feat(ui): Use Prefer Color Scheme to decide to use night modefeat/night-mode-follow-systemHåkon Solbjørg2023-03-22-0/+18
Uses the proposal here: https://drafts.csswg.org/mediaqueries-5/#descdef-media-prefers-color-scheme Seems to be decently supported: https://caniuse.com/?search=prefers-color-scheme