Open grmat opened 3 years ago
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!
Apologies, I thought adding a comment would be enough to have the stale
tag removed.
What would you like to be added: Respect the user's setting for prefers-color-scheme to automatically choose between light and dark modes.
Why is this needed: All major desktops support some kind of automated day/night switch by now, which will usually also toggle the
prefers-color-scheme
preference in web browsers. Respecting this preference by default while keeping the Grafana preferences to be able to override it would result in better UX, IMHO.The way I could imagine this is by
Default
option in Grafana's preferences page (Default | Dark | Light
). On loading, check forprefers-color-scheme
Default
behaviourdark
: load dark.csslight
: load light.cssDefault | Dark | Light | OS
)