pub struct ScrollbarStyle {
pub thumb: Color,
pub thumb_hover: Color,
pub thumb_idle_alpha: f32,
pub track_padding: Px,
}Fields§
§thumb: Color§thumb_hover: Color§thumb_idle_alpha: f32§track_padding: PxPadding (main axis) reserved at both ends of the scrollbar track.
This is part of Radix ScrollArea’s thumb sizing/offset math. Component libraries should set
this to match the visual padding they apply to the scrollbar container (e.g. shadcn/ui v4
uses p-px, so Px(1.0)).
Trait Implementations§
Source§impl Clone for ScrollbarStyle
impl Clone for ScrollbarStyle
Source§fn clone(&self) -> ScrollbarStyle
fn clone(&self) -> ScrollbarStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrollbarStyle
impl Debug for ScrollbarStyle
Source§impl Default for ScrollbarStyle
impl Default for ScrollbarStyle
impl Copy for ScrollbarStyle
Auto Trait Implementations§
impl Freeze for ScrollbarStyle
impl RefUnwindSafe for ScrollbarStyle
impl Send for ScrollbarStyle
impl Sync for ScrollbarStyle
impl Unpin for ScrollbarStyle
impl UnsafeUnpin for ScrollbarStyle
impl UnwindSafe for ScrollbarStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more