ThemeConfigColors

Struct ThemeConfigColors 

Source
pub struct ThemeConfigColors {
Show 94 fields pub accent: Option<SharedString>, pub accent_foreground: Option<SharedString>, pub accordion: Option<SharedString>, pub accordion_hover: Option<SharedString>, pub background: Option<SharedString>, pub border: Option<SharedString>, pub group_box: Option<SharedString>, pub group_box_foreground: Option<SharedString>, pub group_box_title_foreground: Option<SharedString>, pub caret: Option<SharedString>, pub chart_1: Option<SharedString>, pub chart_2: Option<SharedString>, pub chart_3: Option<SharedString>, pub chart_4: Option<SharedString>, pub chart_5: Option<SharedString>, pub danger: Option<SharedString>, pub danger_active: Option<SharedString>, pub danger_foreground: Option<SharedString>, pub danger_hover: Option<SharedString>, pub description_list_label: Option<SharedString>, pub description_list_label_foreground: Option<SharedString>, pub drag_border: Option<SharedString>, pub drop_target: Option<SharedString>, pub foreground: Option<SharedString>, pub info: Option<SharedString>, pub info_active: Option<SharedString>, pub info_foreground: Option<SharedString>, pub info_hover: Option<SharedString>, pub input: Option<SharedString>, pub link: Option<SharedString>, pub link_active: Option<SharedString>, pub link_hover: Option<SharedString>, pub list: Option<SharedString>, pub list_active: Option<SharedString>, pub list_active_border: Option<SharedString>, pub list_even: Option<SharedString>, pub list_head: Option<SharedString>, pub list_hover: Option<SharedString>, pub muted: Option<SharedString>, pub muted_foreground: Option<SharedString>, pub popover: Option<SharedString>, pub popover_foreground: Option<SharedString>, pub primary: Option<SharedString>, pub primary_active: Option<SharedString>, pub primary_foreground: Option<SharedString>, pub primary_hover: Option<SharedString>, pub progress_bar: Option<SharedString>, pub ring: Option<SharedString>, pub scrollbar: Option<SharedString>, pub scrollbar_thumb: Option<SharedString>, pub scrollbar_thumb_hover: Option<SharedString>, pub secondary: Option<SharedString>, pub secondary_active: Option<SharedString>, pub secondary_foreground: Option<SharedString>, pub secondary_hover: Option<SharedString>, pub selection: Option<SharedString>, pub sidebar: Option<SharedString>, pub sidebar_accent: Option<SharedString>, pub sidebar_accent_foreground: Option<SharedString>, pub sidebar_border: Option<SharedString>, pub sidebar_foreground: Option<SharedString>, pub sidebar_primary: Option<SharedString>, pub sidebar_primary_foreground: Option<SharedString>, pub skeleton: Option<SharedString>, pub slider_bar: Option<SharedString>, pub slider_thumb: Option<SharedString>, pub success: Option<SharedString>, pub success_foreground: Option<SharedString>, pub success_hover: Option<SharedString>, pub success_active: Option<SharedString>, pub switch: Option<SharedString>, pub tab: Option<SharedString>, pub tab_active: Option<SharedString>, pub tab_active_foreground: Option<SharedString>, pub tab_bar: Option<SharedString>, pub tab_bar_segmented: Option<SharedString>, pub tab_foreground: Option<SharedString>, pub table: Option<SharedString>, pub table_active: Option<SharedString>, pub table_active_border: Option<SharedString>, pub table_even: Option<SharedString>, pub table_head: Option<SharedString>, pub table_head_foreground: Option<SharedString>, pub table_hover: Option<SharedString>, pub table_row_border: Option<SharedString>, pub title_bar: Option<SharedString>, pub title_bar_border: Option<SharedString>, pub tiles: Option<SharedString>, pub warning: Option<SharedString>, pub warning_active: Option<SharedString>, pub warning_hover: Option<SharedString>, pub warning_foreground: Option<SharedString>, pub overlay: Option<SharedString>, pub window_border: Option<SharedString>, /* private fields */
}

Fields§

§accent: Option<SharedString>

Used for accents such as hover background on MenuItem, ListItem, etc.

§accent_foreground: Option<SharedString>

Used for accent text color.

§accordion: Option<SharedString>

Accordion background color.

§accordion_hover: Option<SharedString>

Accordion hover background color.

§background: Option<SharedString>

Default background color.

§border: Option<SharedString>

Default border color

§group_box: Option<SharedString>

Background color for GroupBox.

§group_box_foreground: Option<SharedString>

Text color for GroupBox.

§group_box_title_foreground: Option<SharedString>

Title text color for GroupBox.

§caret: Option<SharedString>

Input caret color (Blinking cursor).

§chart_1: Option<SharedString>

Chart 1 color.

§chart_2: Option<SharedString>

Chart 2 color.

§chart_3: Option<SharedString>

Chart 3 color.

§chart_4: Option<SharedString>

Chart 4 color.

§chart_5: Option<SharedString>

Chart 5 color.

§danger: Option<SharedString>

Danger background color.

§danger_active: Option<SharedString>

Danger active background color.

§danger_foreground: Option<SharedString>

Danger text color.

§danger_hover: Option<SharedString>

Danger hover background color.

§description_list_label: Option<SharedString>

Description List label background color.

§description_list_label_foreground: Option<SharedString>

Description List label foreground color.

§drag_border: Option<SharedString>

Drag border color.

§drop_target: Option<SharedString>

Drop target background color.

§foreground: Option<SharedString>

Default text color.

§info: Option<SharedString>

Info background color.

§info_active: Option<SharedString>

Info active background color.

§info_foreground: Option<SharedString>

Info text color.

§info_hover: Option<SharedString>

Info hover background color.

§input: Option<SharedString>

Border color for inputs such as Input, Dropdown, etc.

§link: Option<SharedString>

Link text color.

§link_active: Option<SharedString>

Active link text color.

§link_hover: Option<SharedString>

Hover link text color.

§list: Option<SharedString>

Background color for List and ListItem.

§list_active: Option<SharedString>

Background color for active ListItem.

§list_active_border: Option<SharedString>

Border color for active ListItem.

§list_even: Option<SharedString>

Stripe background color for even ListItem.

§list_head: Option<SharedString>

Background color for List header.

§list_hover: Option<SharedString>

Hover background color for ListItem.

§muted: Option<SharedString>

Muted backgrounds such as Skeleton and Switch.

§muted_foreground: Option<SharedString>

Muted text color, as used in disabled text.

§popover: Option<SharedString>

Background color for Popover.

§popover_foreground: Option<SharedString>

Text color for Popover.

§primary: Option<SharedString>

Primary background color.

§primary_active: Option<SharedString>

Active primary background color.

§primary_foreground: Option<SharedString>

Primary text color.

§primary_hover: Option<SharedString>

Hover primary background color.

§progress_bar: Option<SharedString>

Progress bar background color.

§ring: Option<SharedString>

Used for focus ring.

§scrollbar: Option<SharedString>

Scrollbar background color.

§scrollbar_thumb: Option<SharedString>

Scrollbar thumb background color.

§scrollbar_thumb_hover: Option<SharedString>

Scrollbar thumb hover background color.

§secondary: Option<SharedString>

Secondary background color.

§secondary_active: Option<SharedString>

Active secondary background color.

§secondary_foreground: Option<SharedString>

Secondary text color, used for secondary Button text color or secondary text.

§secondary_hover: Option<SharedString>

Hover secondary background color.

§selection: Option<SharedString>

Input selection background color.

§sidebar: Option<SharedString>

Sidebar background color.

§sidebar_accent: Option<SharedString>

Sidebar accent background color.

§sidebar_accent_foreground: Option<SharedString>

Sidebar accent text color.

§sidebar_border: Option<SharedString>

Sidebar border color.

§sidebar_foreground: Option<SharedString>

Sidebar text color.

§sidebar_primary: Option<SharedString>

Sidebar primary background color.

§sidebar_primary_foreground: Option<SharedString>

Sidebar primary text color.

§skeleton: Option<SharedString>

Skeleton background color.

§slider_bar: Option<SharedString>

Slider bar background color.

§slider_thumb: Option<SharedString>

Slider thumb background color.

§success: Option<SharedString>

Success background color.

§success_foreground: Option<SharedString>

Success text color.

§success_hover: Option<SharedString>

Success hover background color.

§success_active: Option<SharedString>

Success active background color.

§switch: Option<SharedString>

Switch background color.

§tab: Option<SharedString>

Tab background color.

§tab_active: Option<SharedString>

Tab active background color.

§tab_active_foreground: Option<SharedString>

Tab active text color.

§tab_bar: Option<SharedString>

TabBar background color.

§tab_bar_segmented: Option<SharedString>

TabBar segmented background color.

§tab_foreground: Option<SharedString>

Tab text color.

§table: Option<SharedString>

Table background color.

§table_active: Option<SharedString>

Table active item background color.

§table_active_border: Option<SharedString>

Table active item border color.

§table_even: Option<SharedString>

Stripe background color for even TableRow.

§table_head: Option<SharedString>

Table head background color.

§table_head_foreground: Option<SharedString>

Table head text color.

§table_hover: Option<SharedString>

Table item hover background color.

§table_row_border: Option<SharedString>

Table row border color.

§title_bar: Option<SharedString>

TitleBar background color, use for Window title bar.

§title_bar_border: Option<SharedString>

TitleBar border color.

§tiles: Option<SharedString>

Background color for Tiles.

§warning: Option<SharedString>

Warning background color.

§warning_active: Option<SharedString>

Warning active background color.

§warning_hover: Option<SharedString>

Warning hover background color.

§warning_foreground: Option<SharedString>

Warning foreground color.

§overlay: Option<SharedString>

Overlay background color.

§window_border: Option<SharedString>

Window border color.

§Platform specific:

This is only works on Linux, other platforms we can’t change the window border color.

Trait Implementations§

Source§

impl Clone for ThemeConfigColors

Source§

fn clone(&self) -> ThemeConfigColors

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ThemeConfigColors

Source§

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

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

impl Default for ThemeConfigColors

Source§

fn default() -> ThemeConfigColors

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

impl<'de> Deserialize<'de> for ThemeConfigColors

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 JsonSchema for ThemeConfigColors

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl Serialize for ThemeConfigColors

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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<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> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

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

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
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> 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> 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> NoneValue for T
where T: Default,

Source§

type NoneType = T

Source§

fn null_value() -> T

The none-equivalent value.
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<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> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

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

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,