Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Separate light and dark themes. #34

Open
DarkFox opened this issue Jul 9, 2022 · 2 comments
Open

Feature Request: Separate light and dark themes. #34

DarkFox opened this issue Jul 9, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@DarkFox
Copy link

DarkFox commented Jul 9, 2022

It would be great to have separated out light and dark themes.

I'm one of those dinosaurs still using automations, to change the theme for all devices, regardless of their "dark mode" setting (in fact, some of my wall mounted tablets don't even support it).

Currently, I'm getting by, by manually editing the theme after every update, but it would be nice to have as standard.

This is the modification I use currently:

Metro Blue Light: &metro-blue-light
  <<: *metro-common-light

  primary-color: "#0078d7"
  rgb-primary-color: "0,120,215"
  rgb-primary-color-darker: "0,91,163"
  rgb-primary-color-lighter: "0,141,253"
  hue-primary-color: "207deg"

  accent-color: "#008dfd"
  rgb-accent-color: "0,141,253"

  card-mod-theme: "Metro Blue Light"

Metro Blue Dark: &metro-blue-dark
  <<: *metro-common-dark

  primary-color: "#0078d7"
  rgb-primary-color: "0,120,215"
  rgb-primary-color-darker: "0,91,163"
  rgb-primary-color-lighter: "0,141,253"
  hue-primary-color: "207deg"

  accent-color: "#008dfd"
  rgb-accent-color: "0,141,253"

  card-mod-theme: "Metro Blue Dark"
@Madelena Madelena added the enhancement New feature or request label Jul 10, 2022
@Madelena
Copy link
Owner

Thanks for the suggestion!

Would HA support using light/dark modes in automations in long run? Is there a feature request to them that we can tag this to in long run?

I understand that what I had implemented is their long term solution, so I'll keep this request here with your code for those who needs this functionality in the mean time.

@DarkFox
Copy link
Author

DarkFox commented Jul 11, 2022

Unfortunately, the way dark/light modes work, with regards to setting it using a service call, is that you can set which theme to use for light mode, and which for dark mode. There's no way to force all clients to dark/light mode.

Hence, to force all clients (that use "backend-selected" theme) to either a dark or light theme, the themes have to be separate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants