Skip to main content

ThemeColorsRefinement

Struct ThemeColorsRefinement 

Source
pub struct ThemeColorsRefinement {
Show 137 fields pub border: Option<Hsla>, pub border_variant: Option<Hsla>, pub border_focused: Option<Hsla>, pub border_selected: Option<Hsla>, pub border_transparent: Option<Hsla>, pub border_disabled: Option<Hsla>, pub elevated_surface_background: Option<Hsla>, pub surface_background: Option<Hsla>, pub background: Option<Hsla>, pub element_background: Option<Hsla>, pub element_hover: Option<Hsla>, pub element_active: Option<Hsla>, pub element_selected: Option<Hsla>, pub element_selection_background: Option<Hsla>, pub element_disabled: Option<Hsla>, pub drop_target_background: Option<Hsla>, pub drop_target_border: Option<Hsla>, pub ghost_element_background: Option<Hsla>, pub ghost_element_hover: Option<Hsla>, pub ghost_element_active: Option<Hsla>, pub ghost_element_selected: Option<Hsla>, pub ghost_element_disabled: Option<Hsla>, pub text: Option<Hsla>, pub text_muted: Option<Hsla>, pub text_placeholder: Option<Hsla>, pub text_disabled: Option<Hsla>, pub text_accent: Option<Hsla>, pub icon: Option<Hsla>, pub icon_muted: Option<Hsla>, pub icon_disabled: Option<Hsla>, pub icon_placeholder: Option<Hsla>, pub icon_accent: Option<Hsla>, pub debugger_accent: Option<Hsla>, pub status_bar_background: Option<Hsla>, pub title_bar_background: Option<Hsla>, pub title_bar_inactive_background: Option<Hsla>, pub toolbar_background: Option<Hsla>, pub tab_bar_background: Option<Hsla>, pub tab_inactive_background: Option<Hsla>, pub tab_active_background: Option<Hsla>, pub search_match_background: Option<Hsla>, pub search_active_match_background: Option<Hsla>, pub panel_background: Option<Hsla>, pub panel_focused_border: Option<Hsla>, pub panel_indent_guide: Option<Hsla>, pub panel_indent_guide_hover: Option<Hsla>, pub panel_indent_guide_active: Option<Hsla>, pub panel_overlay_background: Option<Hsla>, pub panel_overlay_hover: Option<Hsla>, pub pane_focused_border: Option<Hsla>, pub pane_group_border: Option<Hsla>, pub scrollbar_thumb_background: Option<Hsla>, pub scrollbar_thumb_hover_background: Option<Hsla>, pub scrollbar_thumb_active_background: Option<Hsla>, pub scrollbar_thumb_border: Option<Hsla>, pub scrollbar_track_background: Option<Hsla>, pub scrollbar_track_border: Option<Hsla>, pub minimap_thumb_background: Option<Hsla>, pub minimap_thumb_hover_background: Option<Hsla>, pub minimap_thumb_active_background: Option<Hsla>, pub minimap_thumb_border: Option<Hsla>, pub vim_normal_background: Option<Hsla>, pub vim_insert_background: Option<Hsla>, pub vim_replace_background: Option<Hsla>, pub vim_visual_background: Option<Hsla>, pub vim_visual_line_background: Option<Hsla>, pub vim_visual_block_background: Option<Hsla>, pub vim_yank_background: Option<Hsla>, pub vim_helix_jump_label_foreground: Option<Hsla>, pub vim_helix_normal_background: Option<Hsla>, pub vim_helix_select_background: Option<Hsla>, pub vim_normal_foreground: Option<Hsla>, pub vim_insert_foreground: Option<Hsla>, pub vim_replace_foreground: Option<Hsla>, pub vim_visual_foreground: Option<Hsla>, pub vim_visual_line_foreground: Option<Hsla>, pub vim_visual_block_foreground: Option<Hsla>, pub vim_helix_normal_foreground: Option<Hsla>, pub vim_helix_select_foreground: Option<Hsla>, pub editor_foreground: Option<Hsla>, pub editor_background: Option<Hsla>, pub editor_gutter_background: Option<Hsla>, pub editor_subheader_background: Option<Hsla>, pub editor_active_line_background: Option<Hsla>, pub editor_highlighted_line_background: Option<Hsla>, pub editor_debugger_active_line_background: Option<Hsla>, pub editor_line_number: Option<Hsla>, pub editor_active_line_number: Option<Hsla>, pub editor_hover_line_number: Option<Hsla>, pub editor_invisible: Option<Hsla>, pub editor_wrap_guide: Option<Hsla>, pub editor_active_wrap_guide: Option<Hsla>, pub editor_indent_guide: Option<Hsla>, pub editor_indent_guide_active: Option<Hsla>, pub editor_document_highlight_read_background: Option<Hsla>, pub editor_document_highlight_write_background: Option<Hsla>, pub editor_document_highlight_bracket_background: Option<Hsla>, pub terminal_background: Option<Hsla>, pub terminal_foreground: Option<Hsla>, pub terminal_bright_foreground: Option<Hsla>, pub terminal_dim_foreground: Option<Hsla>, pub terminal_ansi_background: Option<Hsla>, pub terminal_ansi_black: Option<Hsla>, pub terminal_ansi_bright_black: Option<Hsla>, pub terminal_ansi_dim_black: Option<Hsla>, pub terminal_ansi_red: Option<Hsla>, pub terminal_ansi_bright_red: Option<Hsla>, pub terminal_ansi_dim_red: Option<Hsla>, pub terminal_ansi_green: Option<Hsla>, pub terminal_ansi_bright_green: Option<Hsla>, pub terminal_ansi_dim_green: Option<Hsla>, pub terminal_ansi_yellow: Option<Hsla>, pub terminal_ansi_bright_yellow: Option<Hsla>, pub terminal_ansi_dim_yellow: Option<Hsla>, pub terminal_ansi_blue: Option<Hsla>, pub terminal_ansi_bright_blue: Option<Hsla>, pub terminal_ansi_dim_blue: Option<Hsla>, pub terminal_ansi_magenta: Option<Hsla>, pub terminal_ansi_bright_magenta: Option<Hsla>, pub terminal_ansi_dim_magenta: Option<Hsla>, pub terminal_ansi_cyan: Option<Hsla>, pub terminal_ansi_bright_cyan: Option<Hsla>, pub terminal_ansi_dim_cyan: Option<Hsla>, pub terminal_ansi_white: Option<Hsla>, pub terminal_ansi_bright_white: Option<Hsla>, pub terminal_ansi_dim_white: Option<Hsla>, pub link_text_hover: Option<Hsla>, pub version_control_added: Option<Hsla>, pub version_control_deleted: Option<Hsla>, pub version_control_modified: Option<Hsla>, pub version_control_renamed: Option<Hsla>, pub version_control_conflict: Option<Hsla>, pub version_control_ignored: Option<Hsla>, pub version_control_word_added: Option<Hsla>, pub version_control_word_deleted: Option<Hsla>, pub version_control_conflict_marker_ours: Option<Hsla>, pub version_control_conflict_marker_theirs: Option<Hsla>,
}
Expand description

A refinable version of [#ident], see that documentation for details.

Fields§

§border: Option<Hsla>§border_variant: Option<Hsla>§border_focused: Option<Hsla>§border_selected: Option<Hsla>§border_transparent: Option<Hsla>§border_disabled: Option<Hsla>§elevated_surface_background: Option<Hsla>§surface_background: Option<Hsla>§background: Option<Hsla>§element_background: Option<Hsla>§element_hover: Option<Hsla>§element_active: Option<Hsla>§element_selected: Option<Hsla>§element_selection_background: Option<Hsla>§element_disabled: Option<Hsla>§drop_target_background: Option<Hsla>§drop_target_border: Option<Hsla>§ghost_element_background: Option<Hsla>§ghost_element_hover: Option<Hsla>§ghost_element_active: Option<Hsla>§ghost_element_selected: Option<Hsla>§ghost_element_disabled: Option<Hsla>§text: Option<Hsla>§text_muted: Option<Hsla>§text_placeholder: Option<Hsla>§text_disabled: Option<Hsla>§text_accent: Option<Hsla>§icon: Option<Hsla>§icon_muted: Option<Hsla>§icon_disabled: Option<Hsla>§icon_placeholder: Option<Hsla>§icon_accent: Option<Hsla>§debugger_accent: Option<Hsla>§status_bar_background: Option<Hsla>§title_bar_background: Option<Hsla>§title_bar_inactive_background: Option<Hsla>§toolbar_background: Option<Hsla>§tab_bar_background: Option<Hsla>§tab_inactive_background: Option<Hsla>§tab_active_background: Option<Hsla>§search_match_background: Option<Hsla>§search_active_match_background: Option<Hsla>§panel_background: Option<Hsla>§panel_focused_border: Option<Hsla>§panel_indent_guide: Option<Hsla>§panel_indent_guide_hover: Option<Hsla>§panel_indent_guide_active: Option<Hsla>§panel_overlay_background: Option<Hsla>§panel_overlay_hover: Option<Hsla>§pane_focused_border: Option<Hsla>§pane_group_border: Option<Hsla>§scrollbar_thumb_background: Option<Hsla>§scrollbar_thumb_hover_background: Option<Hsla>§scrollbar_thumb_active_background: Option<Hsla>§scrollbar_thumb_border: Option<Hsla>§scrollbar_track_background: Option<Hsla>§scrollbar_track_border: Option<Hsla>§minimap_thumb_background: Option<Hsla>§minimap_thumb_hover_background: Option<Hsla>§minimap_thumb_active_background: Option<Hsla>§minimap_thumb_border: Option<Hsla>§vim_normal_background: Option<Hsla>§vim_insert_background: Option<Hsla>§vim_replace_background: Option<Hsla>§vim_visual_background: Option<Hsla>§vim_visual_line_background: Option<Hsla>§vim_visual_block_background: Option<Hsla>§vim_yank_background: Option<Hsla>§vim_helix_jump_label_foreground: Option<Hsla>§vim_helix_normal_background: Option<Hsla>§vim_helix_select_background: Option<Hsla>§vim_normal_foreground: Option<Hsla>§vim_insert_foreground: Option<Hsla>§vim_replace_foreground: Option<Hsla>§vim_visual_foreground: Option<Hsla>§vim_visual_line_foreground: Option<Hsla>§vim_visual_block_foreground: Option<Hsla>§vim_helix_normal_foreground: Option<Hsla>§vim_helix_select_foreground: Option<Hsla>§editor_foreground: Option<Hsla>§editor_background: Option<Hsla>§editor_gutter_background: Option<Hsla>§editor_subheader_background: Option<Hsla>§editor_active_line_background: Option<Hsla>§editor_highlighted_line_background: Option<Hsla>§editor_debugger_active_line_background: Option<Hsla>§editor_line_number: Option<Hsla>§editor_active_line_number: Option<Hsla>§editor_hover_line_number: Option<Hsla>§editor_invisible: Option<Hsla>§editor_wrap_guide: Option<Hsla>§editor_active_wrap_guide: Option<Hsla>§editor_indent_guide: Option<Hsla>§editor_indent_guide_active: Option<Hsla>§editor_document_highlight_read_background: Option<Hsla>§editor_document_highlight_write_background: Option<Hsla>§editor_document_highlight_bracket_background: Option<Hsla>§terminal_background: Option<Hsla>§terminal_foreground: Option<Hsla>§terminal_bright_foreground: Option<Hsla>§terminal_dim_foreground: Option<Hsla>§terminal_ansi_background: Option<Hsla>§terminal_ansi_black: Option<Hsla>§terminal_ansi_bright_black: Option<Hsla>§terminal_ansi_dim_black: Option<Hsla>§terminal_ansi_red: Option<Hsla>§terminal_ansi_bright_red: Option<Hsla>§terminal_ansi_dim_red: Option<Hsla>§terminal_ansi_green: Option<Hsla>§terminal_ansi_bright_green: Option<Hsla>§terminal_ansi_dim_green: Option<Hsla>§terminal_ansi_yellow: Option<Hsla>§terminal_ansi_bright_yellow: Option<Hsla>§terminal_ansi_dim_yellow: Option<Hsla>§terminal_ansi_blue: Option<Hsla>§terminal_ansi_bright_blue: Option<Hsla>§terminal_ansi_dim_blue: Option<Hsla>§terminal_ansi_magenta: Option<Hsla>§terminal_ansi_bright_magenta: Option<Hsla>§terminal_ansi_dim_magenta: Option<Hsla>§terminal_ansi_cyan: Option<Hsla>§terminal_ansi_bright_cyan: Option<Hsla>§terminal_ansi_dim_cyan: Option<Hsla>§terminal_ansi_white: Option<Hsla>§terminal_ansi_bright_white: Option<Hsla>§terminal_ansi_dim_white: Option<Hsla>§link_text_hover: Option<Hsla>§version_control_added: Option<Hsla>§version_control_deleted: Option<Hsla>§version_control_modified: Option<Hsla>§version_control_renamed: Option<Hsla>§version_control_conflict: Option<Hsla>§version_control_ignored: Option<Hsla>§version_control_word_added: Option<Hsla>§version_control_word_deleted: Option<Hsla>§version_control_conflict_marker_ours: Option<Hsla>§version_control_conflict_marker_theirs: Option<Hsla>

Implementations§

Source§

impl ThemeColorsRefinement
where Option<Hsla>: Clone,

Source

pub fn is_some(&self) -> bool

Returns true if all fields are Some

Trait Implementations§

Source§

impl Clone for ThemeColorsRefinement

Source§

fn clone(&self) -> ThemeColorsRefinement

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ThemeColorsRefinement
where Option<Hsla>: Clone,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ThemeColorsRefinement
where Option<Hsla>: Clone,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ThemeColorsRefinement

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<ThemeColorsRefinement> for ThemeColors
where Option<Hsla>: Clone,

Source§

fn from(value: ThemeColorsRefinement) -> Self

Converts to this type from the input type.
Source§

impl IsEmpty for ThemeColorsRefinement
where Option<Hsla>: Clone,

Source§

fn is_empty(&self) -> bool

Returns true if applying this refinement would have no effect.
Source§

impl Refineable for ThemeColorsRefinement
where Option<Hsla>: Clone,

Source§

type Refinement = ThemeColorsRefinement

Source§

fn refine(&mut self, refinement: &Self::Refinement)

Applies the given refinement to this instance, modifying it in place. Read more
Source§

fn refined(self, refinement: Self::Refinement) -> Self

Returns a new instance with the refinement applied, equivalent to cloning self and calling refine on it.
Source§

fn is_superset_of(&self, refinement: &Self::Refinement) -> bool

Returns true if this instance would contain all values from the refinement. Read more
Source§

fn subtract(&self, refinement: &Self::Refinement) -> Self::Refinement

Returns a refinement that represents the difference between this instance and the given refinement. Read more
Source§

fn from_cascade(cascade: &Cascade<Self>) -> Self
where Self: Sized + Default,

Creates an instance from a cascade by merging all refinements atop the default value.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,

Source§

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<T>,

Convert the source color to the destination color using the specified method.
Source§

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Source§

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Source§

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Source§

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Source§

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Source§

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromAngle<T> for T

Source§

fn from_angle(angle: T) -> T

Performs a conversion from angle.
Source§

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Source§

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> IntoAngle<U> for T
where U: FromAngle<T>,

Source§

fn into_angle(self) -> U

Performs a conversion into T.
Source§

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

Source§

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Source§

fn into_color(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Source§

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

Source§

fn into_color_unclamped(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoStimulus<T> for T

Source§

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Source§

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
Source§

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Source§

fn try_into_color(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Source§

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Source§

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Source§

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Source§

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more