1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

refactor interact style

This commit is contained in:
Emil Ernerfeldt
2020-05-10 08:55:41 +02:00
parent 2bd610cb5b
commit 3a1d677840
10 changed files with 135 additions and 87 deletions

View File

@@ -184,10 +184,10 @@ impl<'a> Widget for Slider<'a> {
ui.add_paint_cmd(PaintCmd::Circle {
center: pos2(marker_center_x, rail_rect.center().y),
radius: handle_radius,
fill_color: ui.style().interact_fill_color(&interact),
fill_color: ui.style().interact(&interact).fill_color,
outline: Some(Outline::new(
ui.style().interact_stroke_width(&interact),
ui.style().interact_stroke_color(&interact),
ui.style().interact(&interact).stroke_width,
ui.style().interact(&interact).stroke_color,
)),
});
}

View File

@@ -80,7 +80,7 @@ impl<'t> Widget for TextEdit<'t> {
rect: interact.rect,
corner_radius: 0.0,
// fill_color: Some(color::BLACK),
fill_color: ui.style().interact_fill_color(&interact),
fill_color: ui.style().interact(&interact).fill_color,
// fill_color: Some(ui.style().background_fill_color()),
outline: None, //Some(Outline::new(1.0, color::WHITE)),
});