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,
}Expand description
Theme colors used throughout the UI components.
Fields§
§accent: HslaUsed for accents such as hover background on MenuItem, ListItem, etc.
accent_foreground: HslaUsed for accent text color.
accordion: HslaAccordion background color.
accordion_hover: HslaAccordion hover background color.
background: HslaDefault background color.
border: HslaDefault border color
group_box: HslaBackground color for GroupBox.
group_box_foreground: HslaText color for GroupBox.
caret: HslaInput caret color (Blinking cursor).
chart_1: HslaChart 1 color.
chart_2: HslaChart 2 color.
chart_3: HslaChart 3 color.
chart_4: HslaChart 4 color.
chart_5: HslaChart 5 color.
danger: HslaDanger background color.
danger_active: HslaDanger active background color.
danger_foreground: HslaDanger text color.
danger_hover: HslaDanger hover background color.
description_list_label: HslaDescription List label background color.
description_list_label_foreground: HslaDescription List label foreground color.
drag_border: HslaDrag border color.
drop_target: HslaDrop target background color.
foreground: HslaDefault text color.
info: HslaInfo background color.
info_active: HslaInfo active background color.
info_foreground: HslaInfo text color.
info_hover: HslaInfo hover background color.
input: HslaBorder color for inputs such as Input, Select, etc.
link: HslaLink text color.
link_active: HslaActive link text color.
link_hover: HslaHover link text color.
list: HslaBackground color for List and ListItem.
list_active: HslaBackground color for active ListItem.
list_active_border: HslaBorder color for active ListItem.
list_even: HslaStripe background color for even ListItem.
list_head: HslaBackground color for List header.
list_hover: HslaHover background color for ListItem.
muted: HslaMuted backgrounds such as Skeleton and Switch.
muted_foreground: HslaMuted text color, as used in disabled text.
popover: HslaBackground color for Popover.
popover_foreground: HslaText color for Popover.
primary: HslaPrimary background color.
primary_active: HslaActive primary background color.
primary_foreground: HslaPrimary text color.
primary_hover: HslaHover primary background color.
progress_bar: HslaProgress bar background color.
ring: HslaUsed for focus ring.
scrollbar: HslaScrollbar background color.
scrollbar_thumb: HslaScrollbar thumb background color.
scrollbar_thumb_hover: HslaScrollbar thumb hover background color.
secondary: HslaSecondary background color.
secondary_active: HslaActive secondary background color.
secondary_foreground: HslaSecondary text color, used for secondary Button text color or secondary text.
secondary_hover: HslaHover secondary background color.
selection: HslaInput 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: HslaSkeleton background color.
slider_bar: HslaSlider bar background color.
slider_thumb: HslaSlider thumb background color.
success: HslaSuccess background color.
success_foreground: HslaSuccess text color.
success_hover: HslaSuccess hover background color.
success_active: HslaSuccess active background color.
switch: HslaSwitch background color.
tab: HslaTab background color.
tab_active: HslaTab active background color.
tab_active_foreground: HslaTab active text color.
tab_bar: HslaTabBar background color.
tab_bar_segmented: HslaTabBar segmented background color.
tab_foreground: HslaTab text color.
table: HslaTable background color.
table_active: HslaTable active item background color.
table_active_border: HslaTable active item border color.
table_even: HslaStripe background color for even TableRow.
table_head: HslaTable head background color.
table_head_foreground: HslaTable head text color.
table_hover: HslaTable item hover background color.
table_row_border: HslaTable row border color.
title_bar: HslaTitleBar background color, use for Window title bar.
title_bar_border: HslaTitleBar border color.
tiles: HslaBackground color for Tiles.
warning: HslaWarning background color.
warning_active: HslaWarning active background color.
warning_hover: HslaWarning hover background color.
warning_foreground: HslaWarning foreground color.
overlay: HslaOverlay background color.
window_border: HslaWindow border color.
§Platform specific:
This is only works on Linux, other platforms we can’t change the window border color.
red: HslaThe base red color.
red_light: HslaThe base red light color.
green: HslaThe base green color.
green_light: HslaThe base green light color.
blue: HslaThe base blue color.
blue_light: HslaThe base blue light color.
yellow: HslaThe base yellow color.
yellow_light: HslaThe base yellow light color.
magenta: HslaThe base magenta color.
magenta_light: HslaThe base magenta light color.
cyan: HslaThe base cyan color.
cyan_light: HslaThe base cyan light color.
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().