ThemeColor

Struct ThemeColor 

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

Fields§

§accent: Hsla

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

§accent_foreground: Hsla

Used for accent text color.

§accordion: Hsla

Accordion background color.

§accordion_hover: Hsla

Accordion hover background color.

§background: Hsla

Default background color.

§border: Hsla

Default border color

§group_box: Hsla

Background color for GroupBox.

§group_box_foreground: Hsla

Text color for GroupBox.

§caret: Hsla

Input caret color (Blinking cursor).

§chart_1: Hsla

Chart 1 color.

§chart_2: Hsla

Chart 2 color.

§chart_3: Hsla

Chart 3 color.

§chart_4: Hsla

Chart 4 color.

§chart_5: Hsla

Chart 5 color.

§danger: Hsla

Danger background color.

§danger_active: Hsla

Danger active background color.

§danger_foreground: Hsla

Danger text color.

§danger_hover: Hsla

Danger hover background color.

§description_list_label: Hsla

Description List label background color.

§description_list_label_foreground: Hsla

Description List label foreground color.

§drag_border: Hsla

Drag border color.

§drop_target: Hsla

Drop target background color.

§foreground: Hsla

Default text color.

§info: Hsla

Info background color.

§info_active: Hsla

Info active background color.

§info_foreground: Hsla

Info text color.

§info_hover: Hsla

Info hover background color.

§input: Hsla

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

§link: Hsla

Link text color.

§link_active: Hsla

Active link text color.

§link_hover: Hsla

Hover link text color.

§list: Hsla

Background color for List and ListItem.

§list_active: Hsla

Background color for active ListItem.

§list_active_border: Hsla

Border color for active ListItem.

§list_even: Hsla

Stripe background color for even ListItem.

§list_head: Hsla

Background color for List header.

§list_hover: Hsla

Hover background color for ListItem.

§muted: Hsla

Muted backgrounds such as Skeleton and Switch.

§muted_foreground: Hsla

Muted text color, as used in disabled text.

§popover: Hsla

Background color for Popover.

§popover_foreground: Hsla

Text color for Popover.

§primary: Hsla

Primary background color.

§primary_active: Hsla

Active primary background color.

§primary_foreground: Hsla

Primary text color.

§primary_hover: Hsla

Hover primary background color.

§progress_bar: Hsla

Progress bar background color.

§ring: Hsla

Used for focus ring.

§scrollbar: Hsla

Scrollbar background color.

§scrollbar_thumb: Hsla

Scrollbar thumb background color.

§scrollbar_thumb_hover: Hsla

Scrollbar thumb hover background color.

§secondary: Hsla

Secondary background color.

§secondary_active: Hsla

Active secondary background color.

§secondary_foreground: Hsla

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

§secondary_hover: Hsla

Hover secondary background color.

§selection: Hsla

Input selection background color.

§sidebar: Hsla

Sidebar background color.

§sidebar_accent: Hsla

Sidebar accent background color.

§sidebar_accent_foreground: Hsla

Sidebar accent text color.

§sidebar_border: Hsla

Sidebar border color.

§sidebar_foreground: Hsla

Sidebar text color.

§sidebar_primary: Hsla

Sidebar primary background color.

§sidebar_primary_foreground: Hsla

Sidebar primary text color.

§skeleton: Hsla

Skeleton background color.

§slider_bar: Hsla

Slider bar background color.

§slider_thumb: Hsla

Slider thumb background color.

§success: Hsla

Success background color.

§success_foreground: Hsla

Success text color.

§success_hover: Hsla

Success hover background color.

§success_active: Hsla

Success active background color.

§switch: Hsla

Switch background color.

§tab: Hsla

Tab background color.

§tab_active: Hsla

Tab active background color.

§tab_active_foreground: Hsla

Tab active text color.

§tab_bar: Hsla

TabBar background color.

§tab_bar_segmented: Hsla

TabBar segmented background color.

§tab_foreground: Hsla

Tab text color.

§table: Hsla

Table background color.

§table_active: Hsla

Table active item background color.

§table_active_border: Hsla

Table active item border color.

§table_even: Hsla

Stripe background color for even TableRow.

§table_head: Hsla

Table head background color.

§table_head_foreground: Hsla

Table head text color.

§table_hover: Hsla

Table item hover background color.

§table_row_border: Hsla

Table row border color.

§title_bar: Hsla

TitleBar background color, use for Window title bar.

§title_bar_border: Hsla

TitleBar border color.

§tiles: Hsla

Background color for Tiles.

§warning: Hsla

Warning background color.

§warning_active: Hsla

Warning active background color.

§warning_hover: Hsla

Warning hover background color.

§warning_foreground: Hsla

Warning foreground color.

§overlay: Hsla

Overlay background color.

§window_border: Hsla

Window border color.

§Platform specific:

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

§red: Hsla§red_light: Hsla§green: Hsla§green_light: Hsla§blue: Hsla§blue_light: Hsla§yellow: Hsla§yellow_light: Hsla§magenta: Hsla§magenta_light: Hsla§cyan: Hsla§cyan_light: Hsla

Implementations§

Source§

impl ThemeColor

Source

pub fn light() -> Arc<Self>

Source

pub fn dark() -> Arc<Self>

Trait Implementations§

Source§

impl Clone for ThemeColor

Source§

fn clone(&self) -> ThemeColor

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 ThemeColor

Source§

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

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

impl Default for ThemeColor

Source§

fn default() -> ThemeColor

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

impl<'de> Deserialize<'de> for ThemeColor

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<ThemeColor> for Theme

Source§

fn from(colors: ThemeColor) -> Self

Converts to this type from the input type.
Source§

impl JsonSchema for ThemeColor

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 ThemeColor

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

impl Copy for ThemeColor

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,