Type Alias DropdownStyle

Source
pub type DropdownStyle = SelectStyle;
Expand description

Style alias used by Dropdown.

§Examples

use ailloli_ui_widgets::controls::{DropdownStyle, SelectStyle};
let style: DropdownStyle = SelectStyle::default();
assert_eq!(style.height, 36.0);

Aliased Type§

struct DropdownStyle {
Show 28 fields pub trigger_background: Color, pub trigger_background_hovered: Color, pub trigger_background_pressed: Color, pub popup_background: Color, pub option_hovered: Color, pub option_active: Color, pub option_selected: Color, pub border: Border, pub popup_border: Border, pub focus_ring: Border, pub shadows: Vec<BoxShadow>, pub text: TextStyle, pub placeholder_text: TextStyle, pub disabled_text: TextStyle, pub icon_tint: Color, pub selected_icon_tint: Color, pub disabled_icon_tint: Color, pub width: f32, pub height: f32, pub option_height: f32, pub popup_max_height: f32, pub popup_gap: f32, pub radius: Radius, pub padding_x: f32, pub icon_size: f32, pub icon_gap: f32, pub focus_ring_offset: f32, pub disabled_opacity: f32,
}

Fields§

§trigger_background: Color

Resting trigger fill.

§trigger_background_hovered: Color

Hovered enabled trigger fill.

§trigger_background_pressed: Color

Pressed enabled trigger fill.

§popup_background: Color

Popup surface fill.

§option_hovered: Color

Reserved hovered row fill token.

§option_active: Color

Keyboard/pointer-active row fill.

§option_selected: Color

Selected row fill.

§border: Border

Resting trigger border.

§popup_border: Border

Popup border.

§focus_ring: Border

Focus ring border.

§shadows: Vec<BoxShadow>

Popup shadows painted in order.

§text: TextStyle

Enabled trigger and row text.

§placeholder_text: TextStyle

No-selection placeholder text.

§disabled_text: TextStyle

Disabled row and trigger text.

§icon_tint: Color

Enabled leading/trailing icon tint.

§selected_icon_tint: Color

Selected checkmark tint.

§disabled_icon_tint: Color

Disabled icon tint before opacity multiplication.

§width: f32

Minimum intrinsic trigger/popup width in logical pixels.

§height: f32

Preferred trigger height in logical pixels.

§option_height: f32

Popup row height in logical pixels.

§popup_max_height: f32

Maximum popup height in logical pixels.

§popup_gap: f32

Trigger-to-popup gap in logical pixels.

§radius: Radius

Trigger and popup corner radii.

§padding_x: f32

Horizontal content padding in logical pixels.

§icon_size: f32

Option and chevron icon size in logical pixels.

§icon_gap: f32

Horizontal icon/text gap in logical pixels.

§focus_ring_offset: f32

Focus ring distance beyond trigger bounds in logical pixels.

§disabled_opacity: f32

Disabled alpha multiplier.