pub struct MenuTheme {
pub background: Option<Rgba>,
pub foreground: Option<Rgba>,
pub separator: Option<Rgba>,
pub item_height: Option<f32>,
pub padding_horizontal: Option<f32>,
pub padding_vertical: Option<f32>,
pub icon_spacing: Option<f32>,
pub font: Option<FontSpec>,
}Expand description
Popup and context menu appearance.
Fields§
§background: Option<Rgba>Menu panel background fill.
foreground: Option<Rgba>Menu item text color.
separator: Option<Rgba>Separator line color between menu items.
item_height: Option<f32>Height of a single menu item row.
padding_horizontal: Option<f32>Horizontal padding inside the menu panel.
padding_vertical: Option<f32>Vertical padding inside the menu panel.
icon_spacing: Option<f32>Space between a menu item’s icon and its label.
font: Option<FontSpec>Menu item font specification.
Implementations§
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