pub struct RatatuiUiTheme {Show 15 fields
pub canvas: Color,
pub surface: Color,
pub surface_hover: Color,
pub surface_selected: Color,
pub text: Color,
pub text_secondary: Color,
pub text_muted: Color,
pub border: Color,
pub accent: Color,
pub accent_foreground: Color,
pub info: Color,
pub positive: Color,
pub warning: Color,
pub destructive: Color,
pub destructive_foreground: Color,
/* private fields */
}Expand description
Ratatui adapter for shared semantic component states.
Fields§
§canvas: Color§surface: Color§surface_hover: Color§surface_selected: Color§text: Color§text_secondary: Color§text_muted: Color§border: Color§accent: Color§accent_foreground: Color§info: Color§positive: Color§warning: Color§destructive: Color§destructive_foreground: ColorImplementations§
Source§impl RatatuiUiTheme
impl RatatuiUiTheme
pub fn control_style(self, variant: ButtonVariant, state: ControlState) -> Style
pub fn selection_style(self, state: SelectionState) -> Style
pub fn notice_style(self, tone: NoticeTone) -> Style
pub fn on_background(self, background: Color) -> Self
pub const fn modal_size(size: ModalSize) -> (u16, u16)
Trait Implementations§
Source§impl Clone for RatatuiUiTheme
impl Clone for RatatuiUiTheme
Source§fn clone(&self) -> RatatuiUiTheme
fn clone(&self) -> RatatuiUiTheme
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 RatatuiUiTheme
Source§impl Debug for RatatuiUiTheme
impl Debug for RatatuiUiTheme
impl Eq for RatatuiUiTheme
Source§impl From<&UiPalette> for RatatuiUiTheme
impl From<&UiPalette> for RatatuiUiTheme
Source§impl PartialEq for RatatuiUiTheme
impl PartialEq for RatatuiUiTheme
impl StructuralPartialEq for RatatuiUiTheme
Auto Trait Implementations§
impl Freeze for RatatuiUiTheme
impl RefUnwindSafe for RatatuiUiTheme
impl Send for RatatuiUiTheme
impl Sync for RatatuiUiTheme
impl Unpin for RatatuiUiTheme
impl UnsafeUnpin for RatatuiUiTheme
impl UnwindSafe for RatatuiUiTheme
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