From ec80c776255b9e147466f6473790fc8fccc858d1 Mon Sep 17 00:00:00 2001 From: Surinder Singh Matoo Date: Fri, 13 Sep 2024 03:16:40 +0530 Subject: [PATCH] selection panel style --- core/src/egui/selection_panels.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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) } }