-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
rectangle edge smoothness fix #5838
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
rectangle edge smoothness fix #5838
Conversation
andydotxyz
left a comment
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.
|
Good point. Fortunately, if there is added border then sharp edge is not visible, what about changing IMO significantly wider outline looks better but I understand that someone may want to draw thin border |
I'm not certain of the details but if the edge is only used when it is fill to background then that sounds like a fine approach. |
|
Maybe we should add edge_softness as a new rectangle parameter to allow user to change it? High |
No. The Fyne API is a semantic API - the parameters do what they mean. Something called "EdgeSoftness" that can create a shadow-like effect makes no sense IMHO. |
|
This is looking excellent now thanks. Thanks! |
|
I updated the PR with a different implementation of the stroke and fill colors via |
Thanks so much for going back and looking at it again :) |
|
Thanks - this version looks cool. |
|
I removed that comment. I think it is not needed. I tested the code only on |
…trize shaders edge_softness value
|
I had to update PR because I found out that edges were cropped so I expanded frame without changing rectangle size |
andydotxyz
left a comment
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.
Excellent, thanks so much for pulling this together, loving the smoothness
|
Congratulations on landing your first Fyne PR and thanks so much! |


Description:
(Based on #5830)
Fixed an issue where rounded edge was not rendered correctly.
Before
After
Checklist: