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

feat: add triangle badge shape #107

Merged
merged 2 commits into from
Apr 6, 2023
Merged

Conversation

sawel24
Copy link
Contributor

@sawel24 sawel24 commented Apr 3, 2023

Resolve issue #106

Add a new triangle shape to badges and supports all previous styling features: animations, gradients, borders

Screenshots or Videos

image

@sawel24 sawel24 self-assigned this Apr 3, 2023
@sawel24 sawel24 requested a review from yadaniyil April 3, 2023 15:53
@sawel24 sawel24 linked an issue Apr 3, 2023 that may be closed by this pull request
@yadaniyil yadaniyil merged commit 3273429 into dev Apr 6, 2023
@yadaniyil yadaniyil deleted the feat/add-triangle-badge-shape branch April 6, 2023 15:28
yadaniyil added a commit that referenced this pull request Apr 11, 2023
* feat: add triangle badge shape (#107)

* feat: add triangle badge shape

* Add widget tests for triangle badge shape

* fix: set all custom shapes  to fixed-size proportions  (#108)

* Update custom painter for all custom shapes to set fixed-size proportions

* Return default value of child content for verified account widgets

* Resize the shape depending on the child widget in the same proportions

* Fix git check errors

* Resize all types of shapes depending on the size child widget

* Add method for calculate default badge content padding value

* Change method for calculate default badge content padding value

* Add unit tests for calculateBadgeContentPadding method

* Version bump to 3.1.0

---------

Co-authored-by: Vitaliy Hnidenko <[email protected]>
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.

How to make a Triangle badge ?
2 participants