pub enum ColorTransform {
Lighten(f32),
Darken(f32),
Saturate(f32),
Desaturate(f32),
Alpha(f32),
}Expand description
Transformations applied to theme colors at resolve time.
Variants§
Lighten(f32)
Lighten by 0.0-1.0.
Darken(f32)
Darken by 0.0-1.0.
Saturate(f32)
Increase saturation by 0.0-1.0.
Desaturate(f32)
Decrease saturation by 0.0-1.0.
Alpha(f32)
Apply alpha (approximated for terminal colors).
Trait Implementations§
Source§impl Clone for ColorTransform
impl Clone for ColorTransform
Source§fn clone(&self) -> ColorTransform
fn clone(&self) -> ColorTransform
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 ColorTransform
impl Debug for ColorTransform
impl Copy for ColorTransform
Auto Trait Implementations§
impl Freeze for ColorTransform
impl RefUnwindSafe for ColorTransform
impl Send for ColorTransform
impl Sync for ColorTransform
impl Unpin for ColorTransform
impl UnwindSafe for ColorTransform
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