Struct Intents
pub struct Intents {
pub inverted: AlphaColor<Srgb>,
pub inverted_hover: AlphaColor<Srgb>,
pub on_inverted: AlphaColor<Srgb>,
pub selection: AlphaColor<Srgb>,
pub selection_hover: AlphaColor<Srgb>,
pub you: AlphaColor<Srgb>,
pub selection_tint: AlphaColor<Srgb>,
}Expand description
What controls paint with, by intent rather than by hue.
Fields§
§inverted: AlphaColor<Srgb>Fill of a primary action, a switch that is on, a checked box, a
slider’s filled track. Under Emphasis::Inverted (the default) it
is primary ink, inverted onto the control; under
Emphasis::Tinted it is the theme’s one tint.
inverted_hover: AlphaColor<Srgb>Self::inverted under the pointer or while pressed: one step back
toward the content surface.
on_inverted: AlphaColor<Srgb>Label and glyph on an Self::inverted fill: the content surface.
selection: AlphaColor<Srgb>A selected row, tab or segment on the content surface: one surface
step, colourless unless the emphasis is tinted. Other grounds lift
with Colors::lift_on.
selection_hover: AlphaColor<Srgb>Halfway to Self::selection: an unselected row under the pointer.
you: AlphaColor<Srgb>The local person’s presence colour: their focus ring, text caret and the colour collaborators see their cursor in.
selection_tint: AlphaColor<Srgb>Text-selection wash: Self::you at low alpha, painted under the
selected glyphs.
Trait Implementations§
impl Copy for Intents
impl StructuralPartialEq for Intents
Auto Trait Implementations§
impl Freeze for Intents
impl RefUnwindSafe for Intents
impl Send for Intents
impl Sync for Intents
impl Unpin for Intents
impl UnsafeUnpin for Intents
impl UnwindSafe for Intents
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more