#[non_exhaustive]pub struct ResolvedMenuTheme {
pub background_color: Rgba,
pub separator_color: Rgba,
pub row_height: 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: ResolvedBorderSpec,
}Expand description
Popup and context menu appearance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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: f32Height of a single menu item row.
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.
hover_text_color: RgbaMenu item text color on hover.
disabled_text_color: RgbaDisabled menu item text color.
font: ResolvedFontSpecMenu item font specification.
border: ResolvedBorderSpecMenu border specification.
Trait Implementations§
Source§impl Clone for ResolvedMenuTheme
impl Clone for ResolvedMenuTheme
Source§fn clone(&self) -> ResolvedMenuTheme
fn clone(&self) -> ResolvedMenuTheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedMenuTheme
impl Debug for ResolvedMenuTheme
Source§impl<'de> Deserialize<'de> for ResolvedMenuTheme
impl<'de> Deserialize<'de> for ResolvedMenuTheme
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
Source§impl PartialEq for ResolvedMenuTheme
impl PartialEq for ResolvedMenuTheme
Source§impl Serialize for ResolvedMenuTheme
impl Serialize for ResolvedMenuTheme
impl StructuralPartialEq for ResolvedMenuTheme
Auto Trait Implementations§
impl Freeze for ResolvedMenuTheme
impl RefUnwindSafe for ResolvedMenuTheme
impl Send for ResolvedMenuTheme
impl Sync for ResolvedMenuTheme
impl Unpin for ResolvedMenuTheme
impl UnsafeUnpin for ResolvedMenuTheme
impl UnwindSafe for ResolvedMenuTheme
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