Expand description
Default MenuItemStyle impl driven by paint-recipe data.
RecipeMenuItemStyle ships the IntUI menu-row chrome:
transparent at rest, accent-subtle tint on hover (or highlight via
keyboard navigation), pressed surface tint while clicked. The row
is composed as [leading?] [icon-label gap] [label] [Spacer] [trailing?], padded vertically to item_height and horizontally
to item_padding_horizontal. The trailing slot’s right edge IS
the row’s right edge — the slot widget should reserve its own
right-padding column (typical: shortcut + chevron column inside
a HStack).
Apps that want a different look (Windows-11 row, macOS pull-down,
brutalist square row) write their own impl MenuItemStyle block.
Structs§
- Menu
Item Recipe - Recipe dimensions for
RecipeMenuItemStyle. - Recipe
Menu Item Style - Default
MenuItemStyleshipped with Teksilo. Chrome roles come from the active theme.
Constants§
- MENU_
ICON_ COLUMN_ WIDTH - MENU_
ICON_ LABEL_ GAP - MENU_
ITEM_ CORNER_ RADIUS - Corner radius of the per-row hover / pressed highlight rect.
- MENU_
ITEM_ HEIGHT - MENU_
ITEM_ PADDING_ HORIZONTAL - Right-side padding column (also used as chevron column width).
- MENU_
ITEM_ PADDING_ LEADING - Leading-side padding before the icon/check column.
- MENU_
SEPARATOR_ HEIGHT - MENU_
SHORTCUT_ LEFT_ GAP