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

Fix white line around buttons in Template 4 #1499

Merged
merged 3 commits into from
Nov 27, 2023
Merged

Conversation

vegaro
Copy link
Contributor

@vegaro vegaro commented Nov 27, 2023

From:

Screenshot 2023-11-27 at 13 47 34

To:

Screenshot 2023-11-27 at 13 47 18

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.

@vegaro vegaro added the fix A bug fix label Nov 27, 2023
@vegaro vegaro requested a review from a team November 27, 2023 12:49
Button(
modifier = modifier
.alpha(buttonAlpha)
.padding(1.dp) // Trick to prevent white line around the button border
Copy link
Contributor

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()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it worked! perfect

Copy link
Contributor

@tonidero tonidero left a 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!

@vegaro vegaro enabled auto-merge (squash) November 27, 2023 14:23
@vegaro vegaro merged commit b5d0991 into main Nov 27, 2023
7 checks passed
@vegaro vegaro deleted the fix-border-template-4 branch November 27, 2023 14:39
tonidero pushed a commit that referenced this pull request Nov 30, 2023
**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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants