From 9fe502a0d2e1486bfaf552b090b6a208763cbe77 Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Tue, 19 Mar 2024 22:52:16 -0700 Subject: [PATCH] Restore solid scroll bar style from egui pre-0.24. --- src/app.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app.rs b/src/app.rs index eab57f1..9d41726 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1905,6 +1905,12 @@ impl ProfApp { }; cc.egui_ctx.set_visuals(theme); + // Set solid scroll bar (default from egui pre-0.24) + // The new default "thin" style isn't clickable with our canvas widget + cc.egui_ctx.style_mut(|style| { + style.spacing.scroll = egui::style::ScrollStyle::solid(); + }); + result }