use super::style::{DefaultScrollChevronStyle, ScrollChevronStyle};
use super::theme::ScrollChevronTheme;
use crate::tokens::{BuiltinSet, Tokens, TokenTheme};
pub struct ScrollChevronSettings {
pub theme: Box<dyn ScrollChevronTheme>,
pub style: Box<dyn ScrollChevronStyle>,
}
impl Default for ScrollChevronSettings {
fn default() -> Self {
Self {
theme: Box::new(TokenTheme::new(Tokens::builtin(BuiltinSet::Dark))),
style: Box::new(DefaultScrollChevronStyle),
}
}
}
impl ScrollChevronSettings {
pub fn with_theme(mut self, theme: Box<dyn ScrollChevronTheme>) -> Self {
self.theme = theme;
self
}
pub fn with_style(mut self, style: Box<dyn ScrollChevronStyle>) -> Self {
self.style = style;
self
}
}