issues
search
nathan-gs
/
ha-map-card
A Map Card for Home Assistant
https://community.home-assistant.io/t/map-card-a-slightly-improved-map-card/693088
MIT License
15
stars
4
forks
source link
Dark mode tweaks
#64
Closed
thybag
closed
3 weeks ago
thybag
commented
3 weeks ago
Adds dark mode styles for the attribution.
Fixes bug where icons show wrong colours when in "real" dark mode rather than
theme_mode: dark
. Looks like need to set colours directly as wider default darkmode theme inverts all the vars. This solution appears to be same one used in core map
https://github.com/home-assistant/frontend/blob/a6ef46565f8e98ea47e853ceb7d2dc5baa00ed36/src/components/map/ha-map.ts#L557
theme_mode: dark
. Looks like need to set colours directly as wider default darkmode theme inverts all the vars. This solution appears to be same one used in core map https://github.com/home-assistant/frontend/blob/a6ef46565f8e98ea47e853ceb7d2dc5baa00ed36/src/components/map/ha-map.ts#L557