gathering / gondul

Network management/monitoring system specialized for temporary events
http://tech.gathering.org
GNU General Public License v2.0
43 stars 10 forks source link

feat(ui): Use Prefer Color Scheme to decide to use night mode #223

Closed sklirg closed 1 year ago

sklirg commented 1 year ago

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

Demo:

https://user-images.githubusercontent.com/5422571/227052155-2744a5ea-f785-4711-8194-4ca5387f3183.mov

theS1LV3R commented 1 year ago

How does this look with switches and such added? (can just use dummy switches or something)

sklirg commented 1 year ago

Just like the existing dark mode :)

https://user-images.githubusercontent.com/5422571/227054600-fbaa2eeb-545c-43fb-80fe-8b2dca6bda81.mov