1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Make it easier to create an Outline

This commit is contained in:
Emil Ernerfeldt
2020-04-19 11:11:41 +02:00
parent 2170081221
commit 1afda00fc4
6 changed files with 18 additions and 24 deletions

View File

@@ -71,10 +71,7 @@ impl Window {
PaintCmd::Rect {
corner_radius: 5.0,
fill_color: Some(style.background_fill_color()),
outline: Some(Outline {
color: color::WHITE,
width: 1.0,
}),
outline: Some(Outline::new(1.0, color::WHITE)),
rect: state.rect,
},
);