Skip to main content

dropdown_style

Function dropdown_style 

Source
pub fn dropdown_style(t: &Theme, status: Status) -> Style
Expand description

A closed pick_list’s look: the inset field’s, so a dropdown beside a text field reads as the same kind of control.

Apply as .style(dropdown_style).menu_style(dropdown_menu_style). Style functions rather than a wrapper widget, because pick_list is generic over what it lists and how, and a wrapper would have to re-expose every one of those parameters to add nothing.