Hypfer / lovelace-valetudo-map-card

Display the map from a valetudo-enabled robot in a home assistant dashboard card.
MIT License
252 stars 35 forks source link

Default transparency for zones #48

Closed TheLastProject closed 4 years ago

TheLastProject commented 4 years ago

Currently, no-go areas and currently selected zones for cleanup draw a box with complete opacity. This hides the whole map below it. The color generation feature needs to be smarter and set transparency by default.

TheLastProject commented 4 years ago

I imagine the calculateColor function should get a new "makeLastTransparent" option so that if it falls back to the last fallback value (like '--secondary-text-color') it should add transparency to that value.

CODeRUS commented 4 years ago

Having "border" style would be great. I like how valetudo draw zone itself: изображение simple colored rectangle isn't perfect изображение

TheLastProject commented 4 years ago

Fixed in 2a01bfcb8174ec113e56ccd3fb68e0b5a416e329.