pub enum Color {
Bg(Color32),
WidgetBG(Color32),
Hover(Color32),
Text(Color32),
TextMuted(Color32),
Highlight(Color32),
Border(Color32),
Accent(Color32),
Error(Color32),
Warning(Color32),
Success(Color32),
Info(Color32),
}Expand description
Named palette slot, holding the current Color32 for that slot.
Variants§
Bg(Color32)
WidgetBG(Color32)
Hover(Color32)
Text(Color32)
TextMuted(Color32)
Highlight(Color32)
Border(Color32)
Accent(Color32)
Error(Color32)
Warning(Color32)
Success(Color32)
Info(Color32)
Implementations§
Source§impl Color
impl Color
Sourcepub fn all_colors_from(theme: &ThemeColors) -> Vec<Color>
pub fn all_colors_from(theme: &ThemeColors) -> Vec<Color>
Every named slot, filled from theme.
Sourcepub fn name_from(color: Color32, theme_colors: &ThemeColors) -> &'static str
pub fn name_from(color: Color32, theme_colors: &ThemeColors) -> &'static str
Slot name if color matches a palette entry, otherwise "Unknown".
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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