pub struct RatatuiTheme {
pub ui: RatatuiUiTheme,
pub foreground: Color,
pub background: Color,
pub gutter: Color,
pub addition: Color,
pub deletion: Color,
pub addition_background: Color,
pub deletion_background: Color,
}Expand description
Ratatui colors derived from a shared ReviewTheme. Application colors live
in RatatuiUiTheme; only diff-specific colors are kept here.
Fields§
§ui: RatatuiUiThemeSemantic application colors.
foreground: Color§background: Color§gutter: ColorLine-number and secondary text.
addition: ColorAdded-line foreground.
deletion: ColorRemoved-line foreground.
addition_background: ColorAdded-line background.
deletion_background: ColorRemoved-line background.
Implementations§
Trait Implementations§
Source§impl Clone for RatatuiTheme
impl Clone for RatatuiTheme
Source§fn clone(&self) -> RatatuiTheme
fn clone(&self) -> RatatuiTheme
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 moreSource§impl Debug for RatatuiTheme
impl Debug for RatatuiTheme
impl Eq for RatatuiTheme
Source§impl From<&ReviewTheme> for RatatuiTheme
impl From<&ReviewTheme> for RatatuiTheme
Source§fn from(theme: &ReviewTheme) -> Self
fn from(theme: &ReviewTheme) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RatatuiTheme
impl PartialEq for RatatuiTheme
impl StructuralPartialEq for RatatuiTheme
Auto Trait Implementations§
impl Freeze for RatatuiTheme
impl RefUnwindSafe for RatatuiTheme
impl Send for RatatuiTheme
impl Sync for RatatuiTheme
impl Unpin for RatatuiTheme
impl UnsafeUnpin for RatatuiTheme
impl UnwindSafe for RatatuiTheme
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