pub struct ThemeColors {Show 20 fields
pub background: String,
pub background_panel: String,
pub background_element: String,
pub text: String,
pub text_muted: String,
pub text_secondary: String,
pub primary: String,
pub secondary: String,
pub accent: String,
pub success: String,
pub warning: String,
pub error: String,
pub info: String,
pub border: String,
pub border_active: String,
pub border_subtle: String,
pub diff_added: String,
pub diff_removed: String,
pub diff_modified: String,
pub diff_context: String,
}
Expand description
Theme-aware color definitions for serialization
Fields§
§background: String
§background_panel: String
§background_element: String
§text: String
§text_muted: String
§text_secondary: String
§primary: String
§secondary: String
§accent: String
§success: String
§warning: String
§error: String
§info: String
§border: String
§border_active: String
§border_subtle: String
§diff_added: String
§diff_removed: String
§diff_modified: String
§diff_context: String
Implementations§
Source§impl ThemeColors
impl ThemeColors
Sourcepub fn parse_color(hex: &str) -> Result<Color>
pub fn parse_color(hex: &str) -> Result<Color>
Convert hex color string to ratatui Color
Sourcepub fn color_to_hex(color: Color) -> String
pub fn color_to_hex(color: Color) -> String
Convert ratatui Color to hex string
Trait Implementations§
Source§impl Clone for ThemeColors
impl Clone for ThemeColors
Source§fn clone(&self) -> ThemeColors
fn clone(&self) -> ThemeColors
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 ThemeColors
impl Debug for ThemeColors
Source§impl<'de> Deserialize<'de> for ThemeColors
impl<'de> Deserialize<'de> for ThemeColors
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ThemeColors
impl RefUnwindSafe for ThemeColors
impl Send for ThemeColors
impl Sync for ThemeColors
impl Unpin for ThemeColors
impl UnwindSafe for ThemeColors
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 more