Skip to content

Commit

Permalink
Restore solid scroll bar style from egui pre-0.24.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Mar 20, 2024
1 parent fefde59 commit 9fe502a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9fe502a

Please sign in to comment.