Skip to main content

Module recipe_menu_item_style

Module recipe_menu_item_style 

Source
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§

MenuItemRecipe
Recipe dimensions for RecipeMenuItemStyle.
RecipeMenuItemStyle
Default MenuItemStyle shipped 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