Nicer window resize icon
This commit is contained in:
parent
39e17a7562
commit
ddc34d654b
1 changed files with 31 additions and 13 deletions
|
@ -268,6 +268,7 @@ fn paint_resize_corner(
|
|||
style: &Style,
|
||||
interact: &InteractInfo,
|
||||
) -> PaintCmd {
|
||||
if false {
|
||||
// TODO: Path::circle_sector() or something
|
||||
let quadrant = 0.0; // Bottom-right
|
||||
let mut path = Path::default();
|
||||
|
@ -282,4 +283,21 @@ fn paint_resize_corner(
|
|||
fill_color: style.interact_fill_color(&interact),
|
||||
outline: style.interact_outline(&interact),
|
||||
}
|
||||
} else {
|
||||
let offset = 3.0;
|
||||
let center = center;
|
||||
let radius = radius - offset;
|
||||
let quadrant = 0.0; // Bottom-right
|
||||
let mut path = Path::default();
|
||||
path.add_circle_quadrant(center, radius, quadrant);
|
||||
PaintCmd::Path {
|
||||
path,
|
||||
closed: false,
|
||||
fill_color: None,
|
||||
outline: Some(Outline::new(
|
||||
style.interact_stroke_width(&interact),
|
||||
style.interact_stroke_color(&interact),
|
||||
)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue