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: ColorImplementations§
Source§impl Palette
impl Palette
pub fn catppuccin() -> Self
pub fn catppuccin_latte() -> Self
pub fn terminal() -> Self
pub fn tokyo_night() -> Self
pub fn tokyo_night_day() -> Self
pub fn dracula() -> Self
pub fn nord() -> Self
pub fn gruvbox() -> Self
pub fn gruvbox_light() -> Self
pub fn one_dark() -> Self
pub fn one_light() -> Self
pub fn solarized() -> Self
pub fn solarized_light() -> Self
pub fn kanagawa() -> Self
pub fn kanagawa_lotus() -> Self
pub fn rose_pine() -> Self
pub fn rose_pine_dawn() -> Self
pub fn vesper() -> Self
pub fn from_name(name: &str) -> Option<Self>
Trait Implementations§
impl Eq for Palette
impl StructuralPartialEq for Palette
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnsafeUnpin for Palette
impl UnwindSafe for Palette
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more