pub struct Theme {Show 29 fields
pub text: Color,
pub background: Color,
pub muted: Color,
pub accent: Color,
pub border: Color,
pub border_active: Color,
pub border_type: Option<BorderKind>,
pub border_edges: Edges,
pub heading_1: Color,
pub heading_2: Color,
pub heading_3: Color,
pub heading_4: Color,
pub heading_5: Color,
pub heading_6: Color,
pub code_bg: Color,
pub blockquote: Color,
pub list_marker: Color,
pub task: Color,
pub mode_insert: Color,
pub mode_normal: Color,
pub mode_read: Color,
pub success: Color,
pub info: Color,
pub warning: Color,
pub error: Color,
pub explorer: Pane,
pub note_editor: Pane,
pub outline: Pane,
pub status_bar: StatusBar,
}Expand description
Semantic colour roles for the whole UI. Every hard-coded colour in the
renderer resolves through one of these, so swapping a Theme re-skins
the application. Theme::default reproduces the original palette, so the
default appearance is unchanged.
Fields§
§text: ColorPrimary foreground (terminal default).
background: ColorBase background painted across the whole UI (terminal default by default).
muted: ColorSecondary text: markers, indentation, bullets, badges.
accent: ColorAccent: raw-mode markers and other highlights.
border: ColorDefault border colours and line type for every pane (each pane may
override its own in a [pane] section).
border_active: Color§border_type: Option<BorderKind>§border_edges: Edges§heading_1: Color§heading_2: Color§heading_3: Color§heading_4: Color§heading_5: Color§heading_6: Color§code_bg: ColorBackground for fenced code blocks.
blockquote: ColorBlock-quote bar and text.
list_marker: ColorList bullets and ordered-list numbers.
task: ColorTask check-box marker.
mode_insert: ColorEditor mode indicator: insert / edit (writing).
mode_normal: ColorEditor mode indicator: vim normal.
mode_read: ColorEditor mode indicator: read-only.
success: Color§info: Color§warning: Color§error: Color§explorer: PanePer-pane background and border overrides.
note_editor: Pane§outline: Pane§status_bar: StatusBarImplementations§
Trait Implementations§
impl Copy 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
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> ⓘ
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> ⓘ
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