pub struct ColorTheme { /* private fields */ }Implementations§
Source§impl ColorTheme
impl ColorTheme
pub fn write_css_vars(&self, css_vars: &mut String)
Source§impl ColorTheme
impl ColorTheme
pub fn color_scheme(&self) -> &String
pub fn color_neutral_background_static(&self) -> &String
pub fn color_neutral_background_inverted(&self) -> &String
pub fn color_neutral_background_disabled(&self) -> &String
pub fn color_neutral_background_1(&self) -> &String
pub fn color_neutral_background_1_hover(&self) -> &String
pub fn color_neutral_background_1_pressed(&self) -> &String
pub fn color_neutral_background_2(&self) -> &String
pub fn color_neutral_background_3(&self) -> &String
pub fn color_neutral_background_3_hover(&self) -> &String
pub fn color_neutral_background_3_pressed(&self) -> &String
pub fn color_neutral_background_4(&self) -> &String
pub fn color_neutral_background_4_hover(&self) -> &String
pub fn color_neutral_background_4_pressed(&self) -> &String
pub fn color_neutral_background_5(&self) -> &String
pub fn color_neutral_background_6(&self) -> &String
pub fn color_neutral_foreground_static_inverted(&self) -> &String
pub fn color_neutral_foreground_disabled(&self) -> &String
pub fn color_neutral_foreground_1(&self) -> &String
pub fn color_neutral_foreground_1_hover(&self) -> &String
pub fn color_neutral_foreground_1_pressed(&self) -> &String
pub fn color_neutral_foreground_2(&self) -> &String
pub fn color_neutral_foreground_2_hover(&self) -> &String
pub fn color_neutral_foreground_2_pressed(&self) -> &String
pub fn color_neutral_foreground_2_brand_hover(&self) -> &String
pub fn color_neutral_foreground_2_brand_pressed(&self) -> &String
pub fn color_neutral_foreground_2_brand_selected(&self) -> &String
pub fn color_neutral_foreground_3(&self) -> &String
pub fn color_neutral_foreground_4(&self) -> &String
pub fn color_neutral_foreground_on_brand(&self) -> &String
pub fn color_neutral_foreground_inverted(&self) -> &String
pub fn color_neutral_stroke_disabled(&self) -> &String
pub fn color_neutral_stroke_1(&self) -> &String
pub fn color_neutral_stroke_1_hover(&self) -> &String
pub fn color_neutral_stroke_1_pressed(&self) -> &String
pub fn color_neutral_stroke_2(&self) -> &String
pub fn color_neutral_stroke_accessible(&self) -> &String
pub fn color_neutral_stroke_accessible_hover(&self) -> &String
pub fn color_neutral_stroke_accessible_pressed(&self) -> &String
pub fn color_neutral_shadow_ambient(&self) -> &String
pub fn color_neutral_shadow_key(&self) -> &String
pub fn color_neutral_stencil_1(&self) -> &String
pub fn color_neutral_stencil_2(&self) -> &String
pub fn color_compound_brand_foreground_1(&self) -> &String
pub fn color_compound_brand_foreground_1_hover(&self) -> &String
pub fn color_compound_brand_foreground_1_pressed(&self) -> &String
pub fn color_compound_brand_background(&self) -> &String
pub fn color_compound_brand_background_hover(&self) -> &String
pub fn color_compound_brand_background_pressed(&self) -> &String
pub fn color_compound_brand_stroke(&self) -> &String
pub fn color_compound_brand_stroke_pressed(&self) -> &String
pub fn color_brand_background(&self) -> &String
pub fn color_brand_background_hover(&self) -> &String
pub fn color_brand_background_pressed(&self) -> &String
pub fn color_brand_background_2(&self) -> &String
pub fn color_brand_foreground_1(&self) -> &String
pub fn color_brand_foreground_2(&self) -> &String
pub fn color_brand_stroke_1(&self) -> &String
pub fn color_brand_stroke_2(&self) -> &String
pub fn color_brand_stroke_2_contrast(&self) -> &String
pub fn color_brand_foreground_link(&self) -> &String
pub fn color_brand_foreground_link_hover(&self) -> &String
pub fn color_brand_foreground_link_pressed(&self) -> &String
pub fn color_stroke_focus_2(&self) -> &String
pub fn color_palette_red_background_1(&self) -> &String
pub fn color_palette_red_background_3(&self) -> &String
pub fn color_palette_red_foreground_1(&self) -> &String
pub fn color_palette_red_foreground_3(&self) -> &String
pub fn color_palette_red_border_1(&self) -> &String
pub fn color_palette_red_border_2(&self) -> &String
pub fn color_palette_green_background_1(&self) -> &String
pub fn color_palette_green_background_3(&self) -> &String
pub fn color_palette_green_foreground_1(&self) -> &String
pub fn color_palette_green_foreground_3(&self) -> &String
pub fn color_palette_green_border_1(&self) -> &String
pub fn color_palette_green_border_2(&self) -> &String
pub fn color_palette_yellow_background_1(&self) -> &String
pub fn color_palette_yellow_background_3(&self) -> &String
pub fn color_palette_yellow_foreground_1(&self) -> &String
pub fn color_palette_yellow_foreground_2(&self) -> &String
pub fn color_palette_yellow_border_1(&self) -> &String
pub fn color_palette_dark_orange_background_1(&self) -> &String
pub fn color_palette_dark_orange_background_3(&self) -> &String
pub fn color_palette_dark_orange_foreground_1(&self) -> &String
pub fn color_palette_dark_orange_foreground_3(&self) -> &String
pub fn color_palette_dark_orange_border_1(&self) -> &String
pub fn color_status_success_background_1(&self) -> &String
pub fn color_status_success_foreground_1(&self) -> &String
pub fn color_status_success_border_1(&self) -> &String
pub fn color_status_warning_background_1(&self) -> &String
pub fn color_status_warning_foreground_3(&self) -> &String
pub fn color_status_warning_border_1(&self) -> &String
pub fn color_status_danger_background_1(&self) -> &String
pub fn color_status_danger_foreground_1(&self) -> &String
pub fn color_status_danger_border_1(&self) -> &String
pub fn color_subtle_background(&self) -> &String
pub fn color_subtle_background_hover(&self) -> &String
pub fn color_subtle_background_pressed(&self) -> &String
pub fn color_code_background(&self) -> &String
pub fn color_code_foreground(&self) -> &String
pub fn color_transparent_background(&self) -> &String
pub fn color_transparent_background_hover(&self) -> &String
pub fn color_transparent_background_pressed(&self) -> &String
pub fn color_transparent_stroke(&self) -> &String
pub fn shadow2(&self) -> &String
pub fn shadow4(&self) -> &String
pub fn shadow8(&self) -> &String
pub fn shadow16(&self) -> &String
pub fn shadow28(&self) -> &String
pub fn shadow64(&self) -> &String
Source§impl ColorTheme
impl ColorTheme
pub fn set_color_scheme(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_static(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_inverted( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_background_disabled( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_background_1(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_1_hover(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_1_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_background_2(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_3(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_3_hover(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_3_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_background_4(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_4_hover(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_4_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_background_5(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_background_6(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_foreground_static_inverted( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_foreground_disabled( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_foreground_1(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_foreground_1_hover(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_foreground_1_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_foreground_2(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_foreground_2_hover(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_foreground_2_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_foreground_2_brand_hover( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_foreground_2_brand_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_foreground_2_brand_selected( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_foreground_3(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_foreground_4(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_foreground_on_brand( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_foreground_inverted( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_stroke_disabled(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_stroke_1(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_stroke_1_hover(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_stroke_1_pressed(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_stroke_2(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_stroke_accessible(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_stroke_accessible_hover( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_stroke_accessible_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_neutral_shadow_ambient(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_shadow_key(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_stencil_1(&mut self, val: String) -> &mut Self
pub fn set_color_neutral_stencil_2(&mut self, val: String) -> &mut Self
pub fn set_color_compound_brand_foreground_1( &mut self, val: String, ) -> &mut Self
pub fn set_color_compound_brand_foreground_1_hover( &mut self, val: String, ) -> &mut Self
pub fn set_color_compound_brand_foreground_1_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_compound_brand_background(&mut self, val: String) -> &mut Self
pub fn set_color_compound_brand_background_hover( &mut self, val: String, ) -> &mut Self
pub fn set_color_compound_brand_background_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_compound_brand_stroke(&mut self, val: String) -> &mut Self
pub fn set_color_compound_brand_stroke_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_brand_background(&mut self, val: String) -> &mut Self
pub fn set_color_brand_background_hover(&mut self, val: String) -> &mut Self
pub fn set_color_brand_background_pressed(&mut self, val: String) -> &mut Self
pub fn set_color_brand_background_2(&mut self, val: String) -> &mut Self
pub fn set_color_brand_foreground_1(&mut self, val: String) -> &mut Self
pub fn set_color_brand_foreground_2(&mut self, val: String) -> &mut Self
pub fn set_color_brand_stroke_1(&mut self, val: String) -> &mut Self
pub fn set_color_brand_stroke_2(&mut self, val: String) -> &mut Self
pub fn set_color_brand_stroke_2_contrast(&mut self, val: String) -> &mut Self
pub fn set_color_brand_foreground_link(&mut self, val: String) -> &mut Self
pub fn set_color_brand_foreground_link_hover( &mut self, val: String, ) -> &mut Self
pub fn set_color_brand_foreground_link_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_stroke_focus_2(&mut self, val: String) -> &mut Self
pub fn set_color_palette_red_background_1(&mut self, val: String) -> &mut Self
pub fn set_color_palette_red_background_3(&mut self, val: String) -> &mut Self
pub fn set_color_palette_red_foreground_1(&mut self, val: String) -> &mut Self
pub fn set_color_palette_red_foreground_3(&mut self, val: String) -> &mut Self
pub fn set_color_palette_red_border_1(&mut self, val: String) -> &mut Self
pub fn set_color_palette_red_border_2(&mut self, val: String) -> &mut Self
pub fn set_color_palette_green_background_1(&mut self, val: String) -> &mut Self
pub fn set_color_palette_green_background_3(&mut self, val: String) -> &mut Self
pub fn set_color_palette_green_foreground_1(&mut self, val: String) -> &mut Self
pub fn set_color_palette_green_foreground_3(&mut self, val: String) -> &mut Self
pub fn set_color_palette_green_border_1(&mut self, val: String) -> &mut Self
pub fn set_color_palette_green_border_2(&mut self, val: String) -> &mut Self
pub fn set_color_palette_yellow_background_1( &mut self, val: String, ) -> &mut Self
pub fn set_color_palette_yellow_background_3( &mut self, val: String, ) -> &mut Self
pub fn set_color_palette_yellow_foreground_1( &mut self, val: String, ) -> &mut Self
pub fn set_color_palette_yellow_foreground_2( &mut self, val: String, ) -> &mut Self
pub fn set_color_palette_yellow_border_1(&mut self, val: String) -> &mut Self
pub fn set_color_palette_dark_orange_background_1( &mut self, val: String, ) -> &mut Self
pub fn set_color_palette_dark_orange_background_3( &mut self, val: String, ) -> &mut Self
pub fn set_color_palette_dark_orange_foreground_1( &mut self, val: String, ) -> &mut Self
pub fn set_color_palette_dark_orange_foreground_3( &mut self, val: String, ) -> &mut Self
pub fn set_color_palette_dark_orange_border_1( &mut self, val: String, ) -> &mut Self
pub fn set_color_status_success_background_1( &mut self, val: String, ) -> &mut Self
pub fn set_color_status_success_foreground_1( &mut self, val: String, ) -> &mut Self
pub fn set_color_status_success_border_1(&mut self, val: String) -> &mut Self
pub fn set_color_status_warning_background_1( &mut self, val: String, ) -> &mut Self
pub fn set_color_status_warning_foreground_3( &mut self, val: String, ) -> &mut Self
pub fn set_color_status_warning_border_1(&mut self, val: String) -> &mut Self
pub fn set_color_status_danger_background_1(&mut self, val: String) -> &mut Self
pub fn set_color_status_danger_foreground_1(&mut self, val: String) -> &mut Self
pub fn set_color_status_danger_border_1(&mut self, val: String) -> &mut Self
pub fn set_color_subtle_background(&mut self, val: String) -> &mut Self
pub fn set_color_subtle_background_hover(&mut self, val: String) -> &mut Self
pub fn set_color_subtle_background_pressed(&mut self, val: String) -> &mut Self
pub fn set_color_code_background(&mut self, val: String) -> &mut Self
pub fn set_color_code_foreground(&mut self, val: String) -> &mut Self
pub fn set_color_transparent_background(&mut self, val: String) -> &mut Self
pub fn set_color_transparent_background_hover( &mut self, val: String, ) -> &mut Self
pub fn set_color_transparent_background_pressed( &mut self, val: String, ) -> &mut Self
pub fn set_color_transparent_stroke(&mut self, val: String) -> &mut Self
pub fn set_shadow2(&mut self, val: String) -> &mut Self
pub fn set_shadow4(&mut self, val: String) -> &mut Self
pub fn set_shadow8(&mut self, val: String) -> &mut Self
pub fn set_shadow16(&mut self, val: String) -> &mut Self
pub fn set_shadow28(&mut self, val: String) -> &mut Self
pub fn set_shadow64(&mut self, val: String) -> &mut Self
Source§impl ColorTheme
impl ColorTheme
Source§impl ColorTheme
impl ColorTheme
Sourcepub fn write_orb_color_css_vars(&self, css_vars: &mut String)
pub fn write_orb_color_css_vars(&self, css_vars: &mut String)
Emits canonical --orb-color-* aliases for semantic tokens (orb-only).
Sourcepub fn write_orb_extended_color_css_vars(&self, css_vars: &mut String)
pub fn write_orb_extended_color_css_vars(&self, css_vars: &mut String)
Remaining semantic color tokens referenced by migrated consumers.
Trait Implementations§
Source§impl Clone for ColorTheme
impl Clone for ColorTheme
Source§fn clone(&self) -> ColorTheme
fn clone(&self) -> ColorTheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ColorTheme
impl RefUnwindSafe for ColorTheme
impl Send for ColorTheme
impl Sync for ColorTheme
impl Unpin for ColorTheme
impl UnsafeUnpin for ColorTheme
impl UnwindSafe for ColorTheme
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 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>
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 moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.