pub struct ThemePalette {
pub foreground: ThemeColor,
pub background: ThemeColor,
pub cursor: ThemeColor,
pub cursor_accent: ThemeColor,
pub selection_background: ThemeColor,
pub ansi: [ThemeColor; 16],
}Expand description
The full theme palette: anchor colours plus the 16 ANSI entries.
Fields§
§foreground: ThemeColorDefault foreground colour.
background: ThemeColorDefault background colour.
cursor: ThemeColorCursor colour.
cursor_accent: ThemeColorCursor glyph (accent) colour.
selection_background: ThemeColorSelection highlight background.
ansi: [ThemeColor; 16]The 16 ANSI palette entries (0..=7 normal, 8..=15 bright).
Implementations§
Source§impl ThemePalette
impl ThemePalette
Trait Implementations§
Source§impl Clone for ThemePalette
impl Clone for ThemePalette
Source§fn clone(&self) -> ThemePalette
fn clone(&self) -> ThemePalette
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 moreimpl Copy for ThemePalette
Source§impl Debug for ThemePalette
impl Debug for ThemePalette
Source§impl Default for ThemePalette
impl Default for ThemePalette
impl Eq for ThemePalette
Source§impl Hash for ThemePalette
impl Hash for ThemePalette
Source§impl PartialEq for ThemePalette
impl PartialEq for ThemePalette
Source§fn eq(&self, other: &ThemePalette) -> bool
fn eq(&self, other: &ThemePalette) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ThemePalette
Auto Trait Implementations§
impl Freeze for ThemePalette
impl RefUnwindSafe for ThemePalette
impl Send for ThemePalette
impl Sync for ThemePalette
impl Unpin for ThemePalette
impl UnsafeUnpin for ThemePalette
impl UnwindSafe for ThemePalette
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.