Skip to content

Fix Glance app widget background corner radius #224

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vitusortner
Copy link

@vitusortner vitusortner commented Jan 17, 2025

The system corner radius (system_app_widget_background_radius) was previously never applied because of a missing return.

Also, the docs of the cornerRadius modifier mention that it only works on SDK 31 and above, which allows us to simplify the corner radius modifiers a bit.

Related PR

Before After
Screenshot_1737045668 Screenshot_1737048129

@vitusortner vitusortner marked this pull request as ready for review January 17, 2025 08:57
@shamalip
Copy link
Contributor

The Scaffold component in Glance provides the appropriate background color and radius for rectangular widgets.
Example: bc9a162#diff-d34a42e99cde7c836c2e038b5ddf4c6550a711ace80438cf04da8434691263be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants