kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.49k stars 205 forks source link

Feature Request: Change background colour of player based on state #634

Open conorlap opened 2 years ago

conorlap commented 2 years ago

Hi @kalkih , thanks so much for this fantastic card!

I've got a feature request that I think would enhance the card. It would be great if we could select different background colours for the player based on the device/player state (on/off/idle etc) .

For example, my Xbox integration doesn't provide artwork for the mini media player to utilize so when it's state is 'on' it would be nice to have the player background show as a solid colour (Xbox green/ #0e7a0d for this example!).

Screenshot 2022-03-10 at 09 42 31 It's not as obvious that the Xbox is even on since the background colour is the same as when off.

Screenshot 2022-03-10 at 09 54 03 This player pulls the colour from the artwork and looks great when on/playing.

Thank you!