Skip to main content

Palette

Struct Palette 

Source
pub struct Palette {
Show 28 fields pub name: String, pub app_bg: Color, pub panel_bg: Color, pub canvas_bg: Color, pub node_bg: Color, pub node_focus_bg: Color, pub selection_bg: Color, pub surface_dim: Color, pub border: Color, pub border_focused: Color, pub text: Color, pub subtext: Color, pub muted: Color, pub accent: Color, pub replay_focus: Color, pub running: Color, pub success: Color, pub warning: Color, pub error: Color, pub timed_out: Color, pub cancelled: Color, pub branch: Color, pub user: Color, pub assistant: Color, pub tool: Color, pub timeline_track: Color, pub timeline_fill: Color, pub timeline_thumb: Color,
}

Fields§

§name: String§app_bg: Color§panel_bg: Color§canvas_bg: Color§node_bg: Color§node_focus_bg: Color§selection_bg: Color§surface_dim: Color§border: Color§border_focused: Color§text: Color§subtext: Color§muted: Color§accent: Color§replay_focus: Color§running: Color§success: Color§warning: Color§error: Color§timed_out: Color§cancelled: Color§branch: Color§user: Color§assistant: Color§tool: Color§timeline_track: Color§timeline_fill: Color§timeline_thumb: Color

Implementations§

Source§

impl Palette

Source

pub fn catppuccin() -> Self

Source

pub fn catppuccin_latte() -> Self

Source

pub fn terminal() -> Self

Source

pub fn tokyo_night() -> Self

Source

pub fn tokyo_night_day() -> Self

Source

pub fn dracula() -> Self

Source

pub fn nord() -> Self

Source

pub fn gruvbox() -> Self

Source

pub fn gruvbox_light() -> Self

Source

pub fn one_dark() -> Self

Source

pub fn one_light() -> Self

Source

pub fn solarized() -> Self

Source

pub fn solarized_light() -> Self

Source

pub fn kanagawa() -> Self

Source

pub fn kanagawa_lotus() -> Self

Source

pub fn rose_pine() -> Self

Source

pub fn rose_pine_dawn() -> Self

Source

pub fn vesper() -> Self

Source

pub fn from_name(name: &str) -> Option<Self>

Trait Implementations§

Source§

impl Clone for Palette

Source§

fn clone(&self) -> Palette

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Palette

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Palette

Source§

impl PartialEq for Palette

Source§

fn eq(&self, other: &Palette) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Palette

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.