pub struct PickerBaseStyle {Show 21 fields
pub trigger_background: Color,
pub trigger_hovered: Color,
pub popup_background: Color,
pub active: Color,
pub selected: Color,
pub disabled_fill: Color,
pub border: Border,
pub popup_border: Border,
pub focus_ring: Border,
pub shadows: Vec<BoxShadow>,
pub text: TextStyle,
pub muted_text: TextStyle,
pub disabled_text: TextStyle,
pub accent_text: TextStyle,
pub width: f32,
pub height: f32,
pub popup_gap: f32,
pub radius: Radius,
pub padding_x: f32,
pub icon_size: f32,
pub disabled_opacity: f32,
}Expand description
Common trigger, popup, typography, and geometry tokens for all pickers.
Dimensions are logical pixels and opacity is a multiplier. Fields are used as supplied without validation.
§Examples
use ailloli_ui_widgets::controls::DatePickerStyle;
let base = DatePickerStyle::default().base;
assert_eq!((base.width, base.height), (220.0, 36.0));
assert_eq!(base.disabled_opacity, 0.45);Fields§
§trigger_background: ColorResting trigger fill.
trigger_hovered: ColorHovered enabled trigger fill.
popup_background: ColorPopup surface fill.
active: ColorKeyboard-active cell or row fill.
selected: ColorSelected cell or row fill.
disabled_fill: ColorReserved disabled fill token.
border: BorderResting trigger border.
popup_border: BorderPopup border.
focus_ring: BorderFocused trigger border.
shadows: Vec<BoxShadow>Popup shadows, painted in order.
text: TextStylePrimary text style.
muted_text: TextStylePlaceholder and secondary text style.
disabled_text: TextStyleDisabled trigger/cell text style.
accent_text: TextStyleAccent text style for selected dates.
width: f32Preferred trigger width in logical pixels.
height: f32Preferred trigger height in logical pixels.
popup_gap: f32Gap below the trigger before the popup, in logical pixels.
radius: RadiusTrigger and popup corner radii.
padding_x: f32Trigger horizontal padding in logical pixels.
icon_size: f32Trigger icon size in logical pixels.
disabled_opacity: f32Disabled trigger fill alpha multiplier.
Trait Implementations§
Source§impl Clone for PickerBaseStyle
impl Clone for PickerBaseStyle
Source§fn clone(&self) -> PickerBaseStyle
fn clone(&self) -> PickerBaseStyle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PickerBaseStyle
impl Debug for PickerBaseStyle
Source§impl PartialEq for PickerBaseStyle
impl PartialEq for PickerBaseStyle
impl StructuralPartialEq for PickerBaseStyle
Auto Trait Implementations§
impl Freeze for PickerBaseStyle
impl RefUnwindSafe for PickerBaseStyle
impl Send for PickerBaseStyle
impl Sync for PickerBaseStyle
impl Unpin for PickerBaseStyle
impl UnwindSafe for PickerBaseStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.