pub struct ThemeStyles {Show 27 fields
pub background: Style,
pub text: Style,
pub text_focus: Style,
pub text_inactive: Style,
pub muted: Style,
pub line_number_selected: Style,
pub selection: Style,
pub menu: Style,
pub menu_selected: Style,
pub window: Style,
pub popup: Style,
pub help: Style,
pub statusline: Style,
pub statusline_inactive: Style,
pub statusline_normal: Style,
pub statusline_insert: Style,
pub statusline_select: Style,
pub cursor: Style,
pub cursor_normal: Style,
pub cursor_insert: Style,
pub cursor_select: Style,
pub cursorline: Style,
pub warning: Style,
pub error: Style,
pub info: Style,
pub hint: Style,
pub success: Style,
}Expand description
Cached styles for the common typed Helix UI roles.
Fields§
§background: Style§text: Style§text_focus: Style§text_inactive: Style§muted: Style§line_number_selected: Style§selection: Style§window: Style§popup: Style§help: Style§statusline: Style§statusline_inactive: Style§statusline_normal: Style§statusline_insert: Style§statusline_select: Style§cursor: Style§cursor_normal: Style§cursor_insert: Style§cursor_select: Style§cursorline: Style§warning: Style§error: Style§info: Style§hint: Style§success: StyleImplementations§
Source§impl ThemeStyles
impl ThemeStyles
Trait Implementations§
Source§impl CanvasTheme for ThemeStyles
Available on crate feature tui only.
impl CanvasTheme for ThemeStyles
Available on crate feature
tui only.Source§fn background(&self) -> Style
fn background(&self) -> Style
Background fill for the canvas surface and dropdown panels.
Source§fn label_active(&self) -> Style
fn label_active(&self) -> Style
Field label for the row containing the primary cursor.
Source§fn input_active(&self) -> Style
fn input_active(&self) -> Style
Active (focused) input field text.
Source§fn cursorline(&self) -> Style
fn cursorline(&self) -> Style
Background for the row containing the primary cursor.
Source§fn completion(&self) -> Style
fn completion(&self) -> Style
Inline completion / ghost text shown after the cursor.
Source§fn cursor_normal(&self) -> Style
fn cursor_normal(&self) -> Style
Cursor cell in normal/navigation mode.
Source§fn cursor_insert(&self) -> Style
fn cursor_insert(&self) -> Style
Cursor cell in insert mode.
Source§fn cursor_select(&self) -> Style
fn cursor_select(&self) -> Style
Cursor cell in selection mode.
Source§fn suggestions(&self) -> Style
fn suggestions(&self) -> Style
Non-selected suggestions dropdown items.
Source§fn suggestion_selected(&self) -> Style
fn suggestion_selected(&self) -> Style
Selected / highlighted suggestion in the dropdown.
Source§fn border_active(&self) -> Style
fn border_active(&self) -> Style
Active / focused border style. Read more
Source§impl Clone for ThemeStyles
impl Clone for ThemeStyles
Source§fn clone(&self) -> ThemeStyles
fn clone(&self) -> ThemeStyles
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 ThemeStyles
impl Debug for ThemeStyles
Auto Trait Implementations§
impl Freeze for ThemeStyles
impl RefUnwindSafe for ThemeStyles
impl Send for ThemeStyles
impl Sync for ThemeStyles
impl Unpin for ThemeStyles
impl UnsafeUnpin for ThemeStyles
impl UnwindSafe for ThemeStyles
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> 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