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

Unify style for buttons and collapsing headers

This commit is contained in:
Emil Ernerfeldt
2020-04-22 18:16:06 +02:00
parent d70ae351c1
commit d941c5830d
2 changed files with 7 additions and 10 deletions

View File

@@ -91,9 +91,9 @@ impl Widget for Button {
let mut text_cursor = interact.rect.left_center() + vec2(padding.x, -0.5 * text_size.y);
text_cursor.y += 2.0; // TODO: why is this needed?
region.add_paint_cmd(PaintCmd::Rect {
corner_radius: region.style().interaction_corner_radius,
corner_radius: region.style().interact_corner_radius(&interact),
fill_color: region.style().interact_fill_color(&interact),
outline: None,
outline: region.style().interact_outline(&interact),
rect: interact.rect,
});
let stroke_color = region.style().interact_stroke_color(&interact);