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 background color.
Sidebar accent background color.
Sidebar accent text color.
Sidebar border color.
Sidebar text color.
Sidebar primary background color.
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
impl Clone for ThemeConfigColors
Source§fn clone(&self) -> ThemeConfigColors
fn clone(&self) -> ThemeConfigColors
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ThemeConfigColors
impl Debug for ThemeConfigColors
Source§impl Default for ThemeConfigColors
impl Default for ThemeConfigColors
Source§fn default() -> ThemeConfigColors
fn default() -> ThemeConfigColors
Source§impl<'de> Deserialize<'de> for ThemeConfigColors
impl<'de> Deserialize<'de> for ThemeConfigColors
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ThemeConfigColors
impl JsonSchema for ThemeConfigColors
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for ThemeConfigColors
impl RefUnwindSafe for ThemeConfigColors
impl Send for ThemeConfigColors
impl Sync for ThemeConfigColors
impl Unpin for ThemeConfigColors
impl UnwindSafe for ThemeConfigColors
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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
.Source§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
.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.