#[non_exhaustive]pub struct ResolvedMenuTheme {
pub background_color: Rgba,
pub separator_color: Rgba,
pub row_height: Option<f32>,
pub icon_text_gap: f32,
pub icon_size: f32,
pub hover_background: Rgba,
pub hover_text_color: Rgba,
pub disabled_text_color: Rgba,
pub font: ResolvedFontSpec,
pub border: ResolvedWidgetBorder,
}Expand description
Popup and context menu appearance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.background_color: RgbaMenu panel background fill.
separator_color: RgbaSeparator line color between menu items.
row_height: Option<f32>Height of a single menu item row. None where the platform states
no fixed row height: KDE’s menu items size to their content with a
floor, which this field cannot carry (docs/platform-facts.md §2.6).
icon_text_gap: f32Space between a menu item’s icon and its label.
icon_size: f32Menu item icon size in logical pixels.
hover_background: RgbaMenu item background on hover. It may be translucent, a layer over the
menu’s background_color (kde-breeze states #3daee94d, windows-11
#00000009 light and #ffffff0f dark): lay it over that fill, with
composite_over where the toolkit
replaces the fill rather than painting the highlight over it.
hover_text_color: RgbaMenu item text color on hover.
disabled_text_color: RgbaDisabled menu item text color.
font: ResolvedFontSpecMenu item font specification.
border: ResolvedWidgetBorderMenu border specification: its padding insets an item’s contents from
the edges of the item’s highlight. Its corner radius is the platform’s
menu radius, which KDE gives a hovered item’s highlight and Material the
menu’s container (the iced connector rounds a drop-down’s panel with
it, the egui connector a menu’s items). It has no colour of its own:
the menu’s popup frame is the popover’s, popover.border
(docs/platform-facts.md §2.6, §2.16). No bundled preset states this border’s colour or width; unstated,
they resolve to transparent and 0.