pub struct MenuTheme {
pub menu_bar: Style,
pub menu_bar_focused: Style,
pub dropdown: Style,
pub dropdown_border: Style,
pub item: Style,
pub item_focused: Style,
pub item_disabled: Style,
pub separator: Style,
pub submenu_indicator: Style,
}Expand description
Color scheme for menu rendering.
Fields§
Style for the menu bar background and text.
Style for a focused menu title in the menu bar.
dropdown: StyleStyle for dropdown background and borders.
dropdown_border: StyleStyle for dropdown borders specifically.
item: StyleStyle for normal menu items.
item_focused: StyleStyle for focused/selected menu items.
item_disabled: StyleStyle for disabled menu items.
separator: StyleStyle for separators.
Style for submenu indicators (arrow).
Implementations§
Trait Implementations§
impl Eq for MenuTheme
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more