Skip to content

Commit

Permalink
Floating scroll bars (#3539)
Browse files Browse the repository at this point in the history
* Move scroll bar spacing settings to a `struct ScrollSpacing`

* Add a demo for changing scroll bar appearance

* Add setting for ScrollBarVisibility in demo

* Add `#[inline]` to a `ScrollArea` builder methods

* Refactor how scroll bar show/hide is computed

* Add support for floating scroll bars

* Tweak color and opacity of the scroll handle

* Allow allocating a fixed size even for floating scroll bars

* Add three pre-sets of scroll bars: solid, thin, floating

* Use floating scroll bars as the default

* Fix id-clash with bidir scroll areas

* Improve demo

* Fix doclink

* Remove reset button from demo

* Fix doclinks

* Fix visual artifact with thin rounded rectangles

* Fix doclink

* typos
  • Loading branch information
emilk authored Nov 9, 2023
1 parent f218825 commit 41f9df5
Show file tree
Hide file tree
Showing 10 changed files with 668 additions and 149 deletions.
2 changes: 1 addition & 1 deletion crates/egui/src/animation_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct ValueAnim {
}

impl AnimationManager {
/// See `Context::animate_bool` for documentation
/// See [`crate::Context::animate_bool`] for documentation
pub fn animate_bool(
&mut self,
input: &InputState,
Expand Down
Loading

0 comments on commit 41f9df5

Please sign in to comment.