diff --git a/core/src/egui/selection_panels.rs b/core/src/egui/selection_panels.rs index c4b0af9..a97a455 100644 --- a/core/src/egui/selection_panels.rs +++ b/core/src/egui/selection_panels.rs @@ -155,12 +155,13 @@ impl SelectionPanel { // if !selected && response.hovered() { // prepared.frame = prepared.frame.stroke(hover_stroke); // } - let mut stroke = None; - if response.is_pointer_button_down_on() { - let visuals = ui.style().interact(&response); - prepared.frame = prepared.frame.fill(selected_bg).stroke(visuals.bg_stroke); - stroke = Some(visuals.bg_stroke); - } + // let stroke = None; + //if response.is_pointer_button_down_on() { + let visuals = ui.style().interact(&response); + //prepared.frame = prepared.frame.fill(selected_bg);//.stroke(visuals.bg_stroke); + prepared.frame = prepared.frame.fill(visuals.weak_bg_fill); + //stroke = Some(visuals.bg_stroke); + //} prepared.paint(ui); @@ -169,7 +170,7 @@ impl SelectionPanel { response.mark_changed(); } - (response, stroke) + (response, None) } }