From 0d3bb0411ef2eff5f8dcc31aa1f728936227463a Mon Sep 17 00:00:00 2001 From: Vijay Prakash Date: Sun, 8 Mar 2026 23:55:30 +0100 Subject: [PATCH 1/6] feat(scrollbar): Added scrollbar component style with defaults - Encapsulate track, thumb and arrow styles into a struct. - Implemented builder methods, default styles based on existing implementation --- tui-scrollbar/src/scrollbar/mod.rs | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/tui-scrollbar/src/scrollbar/mod.rs b/tui-scrollbar/src/scrollbar/mod.rs index d9473e06..f237df7f 100644 --- a/tui-scrollbar/src/scrollbar/mod.rs +++ b/tui-scrollbar/src/scrollbar/mod.rs @@ -126,6 +126,46 @@ struct ArrowLayout { end: Option<(u16, u16)>, } +/// Style of the scrollbar. +/// +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub struct ScrollBarStyle { + pub track_style: Style, + pub thumb_style: Style, + pub arrow_style: Option