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

Media Card: Colors more integrated with Art #5105

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

zsarnett
Copy link
Contributor

@zsarnett zsarnett commented Mar 8, 2020

Proposed change

This uses the population count supplied by Vibrant. Sorts the colors by population and then makes the most popular color the background and then find the next most popular color that has the correct aspect ratio to be the text color

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

From

image

To

image

@zsarnett zsarnett changed the title Color more integrated with art Media Card: Colors more integrated with Art Mar 8, 2020
@balloob balloob merged commit 959d8c3 into home-assistant:dev Mar 9, 2020
@balloob
Copy link
Member

balloob commented Mar 9, 2020

This is amazing.

@zsarnett zsarnett deleted the media-card-vibrant branch March 9, 2020 04:01
@lock lock bot locked and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants