pub struct CaptionButtonColors {
pub active_foreground: Option<Hsla>,
pub inactive_foreground: Option<Hsla>,
pub hover_background: Option<Hsla>,
pub hover_foreground: Option<Hsla>,
pub pressed_background: Option<Hsla>,
pub pressed_foreground: Option<Hsla>,
pub close_hover_background: Option<Hsla>,
pub close_hover_foreground: Option<Hsla>,
pub close_pressed_background: Option<Hsla>,
pub close_pressed_foreground: Option<Hsla>,
}Expand description
Optional color overrides for CaptionButtons. Omitted fields resolve from
the current window Material theme.
Fields§
§active_foreground: Option<Hsla>Glyph color for caption buttons when the window is active.
inactive_foreground: Option<Hsla>Glyph color for caption buttons when the window is inactive.
hover_background: Option<Hsla>Background fill color when hovering Minimize or Maximize/Restore.
hover_foreground: Option<Hsla>Glyph color when hovering Minimize or Maximize/Restore.
pressed_background: Option<Hsla>Background fill color while pressing Minimize or Maximize/Restore.
pressed_foreground: Option<Hsla>Glyph color while pressing Minimize or Maximize/Restore.
close_hover_background: Option<Hsla>Background fill color when hovering the Close button. Defaults to ColorRole::Error.
close_hover_foreground: Option<Hsla>Glyph color when hovering the Close button. Defaults to ColorRole::OnError.
close_pressed_background: Option<Hsla>Background fill color while pressing the Close button. Defaults to ColorRole::ErrorContainer.
close_pressed_foreground: Option<Hsla>Glyph color while pressing the Close button. Defaults to ColorRole::OnErrorContainer.
Trait Implementations§
Source§impl Clone for CaptionButtonColors
impl Clone for CaptionButtonColors
Source§fn clone(&self) -> CaptionButtonColors
fn clone(&self) -> CaptionButtonColors
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CaptionButtonColors
Source§impl Debug for CaptionButtonColors
impl Debug for CaptionButtonColors
Source§impl Default for CaptionButtonColors
impl Default for CaptionButtonColors
Source§fn default() -> CaptionButtonColors
fn default() -> CaptionButtonColors
Source§impl PartialEq for CaptionButtonColors
impl PartialEq for CaptionButtonColors
impl StructuralPartialEq for CaptionButtonColors
Auto Trait Implementations§
impl Forget for CaptionButtonColors
impl Freeze for CaptionButtonColors
impl Move for CaptionButtonColors
impl RefUnwindSafe for CaptionButtonColors
impl Send for CaptionButtonColors
impl Sync for CaptionButtonColors
impl Unpin for CaptionButtonColors
impl UnsafeUnpin for CaptionButtonColors
impl UnwindSafe for CaptionButtonColors
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
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().