pub trait SplitDropdownStyle {
fn radius(&self) -> f64;
fn text_padding_x(&self) -> f64;
fn chevron_width(&self) -> f64;
fn font_size(&self) -> f64;
fn border_width(&self) -> f64;
}
pub struct DefaultSplitDropdownStyle;
impl SplitDropdownStyle for DefaultSplitDropdownStyle {
fn radius(&self) -> f64 { 4.0 }
fn text_padding_x(&self) -> f64 { 8.0 }
fn chevron_width(&self) -> f64 { 20.0 }
fn font_size(&self) -> f64 { 13.0 }
fn border_width(&self) -> f64 { 1.0 }
}
pub trait DropdownFieldStyle {
fn radius(&self) -> f64;
fn text_padding_x(&self) -> f64;
fn chevron_size(&self) -> f64;
fn chevron_margin_right(&self) -> f64;
fn font_size(&self) -> f64;
fn border_width(&self) -> f64;
}
pub struct DefaultDropdownFieldStyle;
impl DropdownFieldStyle for DefaultDropdownFieldStyle {
fn radius(&self) -> f64 { 4.0 }
fn text_padding_x(&self) -> f64 { 8.0 }
fn chevron_size(&self) -> f64 { 12.0 }
fn chevron_margin_right(&self) -> f64 { 6.0 }
fn font_size(&self) -> f64 { 13.0 }
fn border_width(&self) -> f64 { 1.0 }
}