Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floating scroll bars #3539

Merged
merged 18 commits into from
Nov 9, 2023
Merged

Floating scroll bars #3539

merged 18 commits into from
Nov 9, 2023

Conversation

emilk
Copy link
Owner

@emilk emilk commented Nov 9, 2023

This introduces settings to control the visuals of scroll bars, with three pre-sets to chose from:

  • Solid (old default)
  • Thin
  • Floating (new default)

To change to the default, use:

ctx.style_mut(|style| {
    style.spacing.scroll = egui::style::ScrollStyle::solid();
});

scroll-bar-styles

@emilk emilk added feature New feature or request egui labels Nov 9, 2023
@emilk emilk merged commit 41f9df5 into master Nov 9, 2023
35 checks passed
@emilk emilk deleted the emilk/floating-scroll-bars branch November 9, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support floating scrollbars
1 participant