-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fix white line around buttons in Template 4 #1499
Conversation
Button( | ||
modifier = modifier | ||
.alpha(buttonAlpha) | ||
.padding(1.dp) // Trick to prevent white line around the button border |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it would work with 1px instead of 1dp... You can convert pixels to dp with this I think: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(kotlin.Int).toDp()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it worked! perfect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a comment, but looks good!
**This is an automatic release.** ### Bugfixes * Fix white line around buttons in Template 4 (#1499) via Cesar de la Vega (@vegaro) ### Performance Improvements * Avoid creating threads when dispatching tasks (#1496) via Toni Rico (@tonidero) ### Other Changes * Refactor QueryPurchasesUseCase and adds QueryPurchasesByTypeUseCase (#1495) via Cesar de la Vega (@vegaro) * Fixes on `update_snapshots_repo` (#1501) via Cesar de la Vega (@vegaro) * Fixes on generate_snapshots_RCUI lane (#1500) via Cesar de la Vega (@vegaro) * Fix integration tests (#1498) via Toni Rico (@tonidero) * Cleanup warnings in AcknowledgePurchaseUseCaseTest (#1497) via Cesar de la Vega (@vegaro) * Add AcknowledgePurchaseUseCase (#1492) via Cesar de la Vega (@vegaro) * Refactor findPurchaseInPurchaseHistory (#1493) via Cesar de la Vega (@vegaro) * ConsumePurchaseUseCase (#1487) via Cesar de la Vega (@vegaro) * Add retries with backoff and different treatment to SERVICE_UNAVAILABLE (#1490) via Cesar de la Vega (@vegaro) Co-authored-by: revenuecat-ops <ops@revenuecat.com>
From:
To:
I fixed it by adding the border to the surrounding box and a very small padding to the button. I think the line comes originally from antialising.