pub struct Theme {Show 26 fields
pub mode: ThemeMode,
pub status_needs_input: Color,
pub status_processing: Color,
pub status_waiting: Color,
pub status_unknown: Color,
pub status_idle: Color,
pub status_finished: Color,
pub border: Color,
pub header: Color,
pub footer: Color,
pub highlight_key: Color,
pub text_primary: Color,
pub text_muted: Color,
pub cost: Color,
pub cost_warning: Color,
pub cost_danger: Color,
pub context_ok: Color,
pub context_warning: Color,
pub context_danger: Color,
pub burn_rate_low: Color,
pub burn_rate_mid: Color,
pub burn_rate_high: Color,
pub sparkline: Color,
pub input_accent: Color,
pub success: Color,
pub error: Color,
}Expand description
Semantic color palette for the TUI.
Fields§
§mode: ThemeMode§status_needs_input: Color§status_processing: Color§status_waiting: Color§status_unknown: Color§status_idle: Color§status_finished: Color§border: Color§header: Color§highlight_key: Color§text_primary: Color§text_muted: Color§cost: Color§cost_warning: Color§cost_danger: Color§context_ok: Color§context_warning: Color§context_danger: Color§burn_rate_low: Color§burn_rate_mid: Color§burn_rate_high: Color§sparkline: Color§input_accent: Color§success: Color§error: ColorImplementations§
Source§impl Theme
impl Theme
pub fn from_mode(mode: ThemeMode) -> Self
Sourcepub fn status_color(&self, status: &SessionStatus) -> Color
pub fn status_color(&self, status: &SessionStatus) -> Color
Get the color for a session status.
Trait Implementations§
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<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