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:
@@ -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,
|
||||
)),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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)),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user