pub struct MenuTheme {
pub background_color: Option<Rgba>,
pub separator_color: Option<Rgba>,
pub row_height: Option<f32>,
pub icon_text_gap: Option<f32>,
pub icon_size: Option<f32>,
pub hover_background: Option<Rgba>,
pub hover_text_color: Option<Rgba>,
pub disabled_text_color: Option<Rgba>,
pub font: Option<FontSpec>,
pub border: Option<BorderSpec>,
}Expand description
Popup and context menu appearance.
Fields§
§background_color: Option<Rgba>Menu panel background fill.
separator_color: Option<Rgba>Separator line color between menu items.
row_height: Option<f32>Height of a single menu item row.
icon_text_gap: Option<f32>Space between a menu item’s icon and its label.
icon_size: Option<f32>Menu item icon size in logical pixels.
hover_background: Option<Rgba>Menu item background on hover.
hover_text_color: Option<Rgba>Menu item text color on hover.
disabled_text_color: Option<Rgba>Disabled menu item text color.
font: Option<FontSpec>Menu item font specification.
border: Option<BorderSpec>Menu border specification.
Implementations§
Source§impl MenuTheme
impl MenuTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MenuTheme
impl<'de> Deserialize<'de> for MenuTheme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MenuTheme
Auto Trait Implementations§
impl Freeze for MenuTheme
impl RefUnwindSafe for MenuTheme
impl Send for MenuTheme
impl Sync for MenuTheme
impl Unpin for MenuTheme
impl UnsafeUnpin for MenuTheme
impl UnwindSafe for MenuTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more