-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Per-corner rounding of rectangles #1206
Conversation
Not too sure of whether the changelog for this would go on either |
Whoops. Seems github does dont like renaming branches with open PRs |
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.
Looks great, but I left some comments
pub nw: f32, | ||
pub ne: f32, | ||
pub sw: f32, | ||
pub se: f32, |
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.
pub nw: f32, | |
pub ne: f32, | |
pub sw: f32, | |
pub se: f32, | |
/// north-west = left-top | |
pub nw: f32, | |
/// north-east = right-top | |
pub ne: f32, | |
/// south-west = left-bottom | |
pub sw: f32, | |
/// south-east = right-bottom | |
pub se: f32, |
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.
Perhaps something like /// Top left (north-west)
would be a bit better formatting wise for these?
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
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.
Spectacular - thanks!
Also update changelogs and clean up other aspects of #1206
Also update changelogs and clean up other aspects of emilk/egui#1206
Also update changelogs and clean up other aspects of emilk/egui#1206
Ever got bored of those plain old boring corners? Don't you feel they all look the same? Fear not, I have the solution for you:
Uses a new
Rounding
struct as discussed on the discord. Although maybe redundant, also gave it anew
function to shorten things a bit when creating more complex layouts.I separated each corner into its own slider for what is shown in the demo app, however I have no idea where the other sliders inOh those are for widgets themselves. Seems the labels fit the style so that's good.WidgetVisuals
go to.Note: I was not able to run
check.sh
which seems to have already been reported here. Got a bunch ofmismatched type
errors.