sibbl / hass-lovelace-kindle-screensaver

This tool generates a png from a Home Assistant Lovelace view, which can be displayed on a Kindle device which has the Online Screensaver plugin installed.
MIT License
311 stars 71 forks source link

Add option to enable browser dark mode #97

Closed deenter closed 7 months ago

deenter commented 7 months ago

93

Allows to set the option whether the light or dark browser mode should be requested.

Default: light light

Option: dark dark

Option can be set by using the PREFERS_COLOR_SCHEME environment variable

sibbl commented 7 months ago

What a great idea, thanks for the PR!

Would you mind adding the new option to the config.yaml too, please?

Then our Hass.io addon users can also directly benefit from it. The syntax should be similar to the COLOR_MODE dropdown. Thanks in advance!

deenter commented 7 months ago

Thanks for the hint @sibbl, the config.yaml file is now also updated.

sibbl commented 7 months ago

That was quick - thanks 👍 looks all good to me. Enjoy your (probably) dark dashboard!