pub trait ScrollbarTheme {
fn thumb_normal(&self) -> &str;
fn thumb_hover(&self) -> &str;
fn thumb_active(&self) -> &str;
fn track_bg(&self) -> &str;
}
#[derive(Default)]
pub struct DefaultScrollbarTheme;
impl ScrollbarTheme for DefaultScrollbarTheme {
fn thumb_normal(&self) -> &str { "#6a6d78" }
fn thumb_hover(&self) -> &str { "#d1d4dc" }
fn thumb_active(&self) -> &str { "#d1d4dc" }
fn track_bg(&self) -> &str { "#363a45" }
}
#[derive(Default)]
pub struct LightScrollbarTheme;
impl ScrollbarTheme for LightScrollbarTheme {
fn thumb_normal(&self) -> &str { "#9598a1" }
fn thumb_hover(&self) -> &str { "#131722" }
fn thumb_active(&self) -> &str { "#131722" }
fn track_bg(&self) -> &str { "#c8cad0" }
}