pub struct ColorPalette {Show 17 fields
pub bg_primary: String,
pub bg_secondary: String,
pub bg_tertiary: String,
pub bg_elevated: String,
pub text_primary: String,
pub text_secondary: String,
pub text_muted: String,
pub accent_primary: String,
pub accent_secondary: String,
pub accent_success: String,
pub accent_warning: String,
pub accent_error: String,
pub border_subtle: String,
pub border_default: String,
pub axis_x: String,
pub axis_y: String,
pub axis_z: String,
}Fields§
§bg_primary: String§bg_secondary: String§bg_tertiary: String§bg_elevated: String§text_primary: String§text_secondary: String§text_muted: String§accent_primary: String§accent_secondary: String§accent_success: String§accent_warning: String§accent_error: String§border_subtle: String§border_default: String§axis_x: String§axis_y: String§axis_z: StringImplementations§
Source§impl ColorPalette
impl ColorPalette
pub fn dark() -> ColorPalette
pub fn light() -> ColorPalette
pub fn high_contrast() -> ColorPalette
pub fn monokai() -> ColorPalette
pub fn nord() -> ColorPalette
Trait Implementations§
Source§impl Clone for ColorPalette
impl Clone for ColorPalette
Source§fn clone(&self) -> ColorPalette
fn clone(&self) -> ColorPalette
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColorPalette
impl Debug for ColorPalette
Source§impl Default for ColorPalette
impl Default for ColorPalette
Source§fn default() -> ColorPalette
fn default() -> ColorPalette
Returns the “default value” for a type. Read more
Source§impl Hash for ColorPalette
impl Hash for ColorPalette
Source§impl PartialEq for ColorPalette
impl PartialEq for ColorPalette
impl Eq for ColorPalette
impl StructuralPartialEq for ColorPalette
Auto Trait Implementations§
impl Freeze for ColorPalette
impl RefUnwindSafe for ColorPalette
impl Send for ColorPalette
impl Sync for ColorPalette
impl Unpin for ColorPalette
impl UnwindSafe for ColorPalette
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