Navidrome: Change theme based on browser's settings

Created on 1 May 2020  路  4Comments  路  Source: deluan/navidrome

It would be fancy to have an option to automatically switch between light (day) and dark (night) mode based on sunset/sunrise in current timezone. Just dropping it here for the backlog.

enhancement help wanted web ui

Most helpful comment

@Kernald That's actually a great idea! I think this kind of thing is out-of-scope for Navidrome, and should be the browser/OS responsibility, and this attribute makes total sense. I'll take a look at this

All 4 comments

Not sure if there is demand for this. I'd surely not use it :)
I'll keep this issue open to let others chime in.

I'd like to see something like that, but rather than time-based, making use of CSS's prefers-color-scheme would probably make more sense - https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

@Kernald That's actually a great idea! I think this kind of thing is out-of-scope for Navidrome, and should be the browser/OS responsibility, and this attribute makes total sense. I'll take a look at this

Info on how to use prefers-color-scheme with Material-UI's themes: https://material-ui.com/customization/palette/#user-preference

Was this page helpful?
0 / 5 - 0 ratings