Skip to main content

Module menu

Module menu 

Source
Available on crate features combobox or command or dropdown-menu or select or sidebar only.
Expand description

The look every menu and list shares: dropdown and context menus, the command list, and the combobox and select lists.

Rows are 32 pixels tall: 14 pixel text on a 20 pixel line, 6 pixels of padding above and below and 8 at the sides, inset 4 pixels from the surface edge. row_style resolves their colours for a RowStatus.

Structs§

RowStyle
The colours of one row. Icons are drawn with an opaque tint; a disabled row fades them with icon::opacity.

Enums§

RowStatus
How a row is drawn.

Constants§

ICON_SIZE
Size of leading icons, check marks and chevrons.
LABEL_LINE_HEIGHT
Line height of a group label.
LINE_HEIGHT
Line height of a row’s label.
ROW_PADDING
Padding inside a row: 6 pixels above and below, 8 at the sides.

Functions§

label_style
The group label style.
row_container_style
The container style of a row: its background, text colour and radius.
row_style
Resolves a row’s colours. Destructive rows keep the destructive colour for their text and icon, and highlight with a tint of it.
separator_style
The separator line.