rectangle edge smoothness fix - #5838
Conversation
|
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.
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: