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] Set artwork overlay opacity (and maybe color) #118

Closed
noxhirsch opened this issue May 10, 2019 · 8 comments
Closed

[Feature Request] Set artwork overlay opacity (and maybe color) #118

noxhirsch opened this issue May 10, 2019 · 8 comments
Labels
enhancement New feature or request

Comments

@noxhirsch
Copy link

By default the artwork has a black translucent overlay (or the image has a lower opacity in front of a black background). I'd like to decrease the visibility of the artwork to increase the readability of the text/buttons.
It would be cool if there's a setting for that.
Additionally maybe some people would like to change that overlay to white to fit it in a bright HomeAssistant template.

By the way: Thank you for your hard work on this amazing player card 👍

@kalkih kalkih added the enhancement New feature or request label May 10, 2019
@kalkih
Copy link
Owner

kalkih commented May 10, 2019

Absolutely, the visibility can get pretty bad, especially with certain artwork colors/patterns. Tried to take kind of a middle ground approach with a bit of darkening of the artwork paired with white buttons/text/icons.

I think this would be a perfect use case for theme variables, I could potentially add one for the overlay and another one for the text/icon/text color when artwork cover is used and there is artwork present.
What do you think?

This would apply to cover, full-cover & full-cover-fit artwork options.

@noxhirsch
Copy link
Author

Great idea! I think this is the best solution 👍

@kalkih
Copy link
Owner

kalkih commented May 10, 2019

Example of the variables in action:

# theme...
mini-media-player-overlay-color: rgba(255, 255, 255, 0.75)
mini-media-player-overlay-base-color: #000

hyperion_8123_lovelace_4 copy 3

@iantrich
Copy link
Contributor

Very nice!

@noxhirsch
Copy link
Author

I love it!

@kalkih
Copy link
Owner

kalkih commented May 17, 2019

Now available in the latest release, would love to see screenshots if you end up using it!

@kalkih kalkih closed this as completed May 17, 2019
@noxhirsch
Copy link
Author

Of course I'm using it! :) Here are two screenshots - even if it is very unspectacular in my case, because I only use my blueish tinted background-color as overlay. I think there will be much more creative mini-media-player in the wild, soon ;)
player1
player2
By the way: I noticed, that the runtime seems to be a little bit of.

@kalkih
Copy link
Owner

kalkih commented Jun 26, 2019

Looks great, the runtime misplacement has been fixed #119.

I played around with the theme variables a bit more and noticed it would be great to be able to change the accent color when artwork is present as well, so I've now added mini-media-player-overlay-accent-color, which will be available in the next release.

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

3 participants