pub struct Theme {
pub green: String,
pub yellow: String,
pub orange: String,
pub red: String,
pub blue: String,
pub dim: String,
pub fg: String,
pub bar_empty: String,
pub marker: String,
}Expand description
Full resolved palette used by the widget tooltip and the TUI.
All fields are stored as #RRGGBB strings ready to drop into Pango
<span foreground='…'> markup. The TUI converts them to ratatui::Color.
Fields§
§green: String§yellow: String§orange: String§red: String§blue: String§dim: String§fg: String§bar_empty: String§marker: StringImplementations§
Source§impl Theme
impl Theme
Sourcepub fn with_overrides(
self,
low: Option<String>,
mid: Option<String>,
high: Option<String>,
critical: Option<String>,
) -> Self
pub fn with_overrides( self, low: Option<String>, mid: Option<String>, high: Option<String>, critical: Option<String>, ) -> Self
Apply CLI --color-* overrides. Each Some(_) wins over the underlying
theme; None preserves the resolved color.
Sourcepub fn merged_with_omarchy(self) -> Self
pub fn merged_with_omarchy(self) -> Self
Try to load the Omarchy theme and fold it on top of self. Returns
the result unmodified if the file is missing or unreadable — matching
claudebar’s silent fallback (the script never errors on missing themes).
Sourcepub fn merged_with_omarchy_file(self, path: &Path) -> Self
pub fn merged_with_omarchy_file(self, path: &Path) -> Self
Same as merged_with_omarchy but with an explicit path (for tests).
Trait Implementations§
impl Eq for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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