Replies: 1 comment
-
PR for this has been opened here #1506 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I would like to add support for a CSS-style border radius for quads and quad based-widgets, e.g the button. This means being able to specify different border radius values for the separate corners.
The implementation isn't complicated but this will have an effect on the widget API for button styles and pick lists which is why I'm opening this discussion. Instead of having a
f32
for the border radius would either be[f32; 4]
or a type wrapping that likepub struct BorderRadius([f32; 4]);
. The latter would have the advantage of allowing to implementFrom<f32>
which will make it a bit more ergonomic.So two questions:
Beta Was this translation helpful? Give feedback.
All reactions