commit e4732f5112ad7688e4159be9e2cb9869ca851aae
parent 8fbe954cf398e9f299aebae3e06dd5d8903a8886
Author: William Casarin <jb55@jb55.com>
Date: Wed, 15 Jan 2025 14:00:08 -0800
grip: fix double frame border
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/crates/notedeck_columns/src/ui/column/header.rs b/crates/notedeck_columns/src/ui/column/header.rs
@@ -250,12 +250,12 @@ impl<'a> NavTitle<'a> {
fn add_move_tooltip(&mut self, id: egui::Id, move_resp: &egui::Response) -> Option<usize> {
let mut inner_resp = None;
move_resp.show_tooltip_ui(|ui| {
+ // dnd frame color workaround
+ ui.visuals_mut().widgets.inactive.bg_stroke = Stroke::default();
let x_range = ui.available_rect_before_wrap().x_range();
let is_dragging = egui::DragAndDrop::payload::<usize>(ui.ctx()).is_some(); // must be outside ui.dnd_drop_zone to capture properly
let (_, _) = ui.dnd_drop_zone::<usize, ()>(
- egui::Frame::none()
- .inner_margin(Margin::same(8.0))
- .rounding(egui::Rounding::same(8.0)),
+ egui::Frame::none().inner_margin(Margin::same(8.0)),
|ui| {
let distances: Vec<(egui::Response, f32)> =
self.collect_column_distances(ui, id);