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 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: 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§
Trait Implementations§
Source§impl Clone for ThemeColor
impl Clone for ThemeColor
Source§fn clone(&self) -> ThemeColor
fn clone(&self) -> ThemeColor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ThemeColor
impl Debug for ThemeColor
Source§impl Default for ThemeColor
impl Default for ThemeColor
Source§fn default() -> ThemeColor
fn default() -> ThemeColor
Source§impl<'de> Deserialize<'de> for ThemeColor
impl<'de> Deserialize<'de> for ThemeColor
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 From<ThemeColor> for Theme
impl From<ThemeColor> for Theme
Source§fn from(colors: ThemeColor) -> Self
fn from(colors: ThemeColor) -> Self
Source§impl JsonSchema for ThemeColor
impl JsonSchema for ThemeColor
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 moreSource§impl Serialize for ThemeColor
impl Serialize for ThemeColor
impl Copy for ThemeColor
Auto Trait Implementations§
impl Freeze for ThemeColor
impl RefUnwindSafe for ThemeColor
impl Send for ThemeColor
impl Sync for ThemeColor
impl Unpin for ThemeColor
impl UnwindSafe for ThemeColor
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()
.