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

add transparent background to media widget #4618

Merged

Conversation

ShaunPlummer
Copy link
Contributor

Summary

Add support for the media widget to support transparent background. Particularly when nothing is playing the widget is playing it blocks a lot of the wallpaper.

Screenshots

Dark Theme Light Theme
Screenshot_20240908_192143 Screenshot_20240908_192224

Any other notes

Sometimes the text might not have a high enough contrast ratio with the background. I considered making the text colour customisable. This may require some additional (I see a number have already been defined) custom attributes for the views as android.R.attr.textColorPrimary doesn't appear to be available for the widget.

Allow users to configure the media widget to have a transparent background.
remove duplicated logic to check for dynamic colour support and when displayed the currently selected value.
@ShaunPlummer ShaunPlummer changed the title Feat/transparent media widget add transparent background to media widget Sep 8, 2024
@ShaunPlummer ShaunPlummer changed the title add transparent background to media widget add transparent background to media widget Sep 8, 2024
@ShaunPlummer ShaunPlummer force-pushed the feat/transparent-media-widget branch from 6025a79 to 46c3099 Compare September 8, 2024 19:00
Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the debug APK and works as expected, thank you for the contribution!

@dshokouhi dshokouhi merged commit b6a9934 into home-assistant:master Sep 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants