pub struct CodeTheme {Show 21 fields
pub bg: u32,
pub fg: u32,
pub gutter_bg: u32,
pub gutter_fg: u32,
pub gutter_cur: u32,
pub line_hl: u32,
pub sel: u32,
pub sel_inactive: u32,
pub sel_text: u32,
pub bracket: u32,
pub find: u32,
pub find_cur: u32,
pub find_frame: bool,
pub caret: u32,
pub tokens: [u32; 17],
pub bold: u32,
pub italic: u32,
pub diag: [u32; 3],
pub breakpoint: u32,
pub exec_line: u32,
pub exec_mark: u32,
}Expand description
the colours of a code editor (0xAARRGGBB); bold / italic: a bit per SY_* kind
Fields§
§bg: u32§fg: u32§gutter_bg: u32§gutter_fg: u32§gutter_cur: u32the current line’s number
line_hl: u32the current line’s background
sel: u32the selection (focused / not focused)
sel_inactive: u32§sel_text: u32the selected text (0: the tokens keep their colours)
bracket: u32the frame around a matching bracket pair
find: u32the find matches and the current one
find_cur: u32§find_frame: boolfind matches framed instead of filled (high contrast)
caret: u32§tokens: [u32; 17]§bold: u32§italic: u32§diag: [u32; 3]the wavy underlines and gutter markers of errors, warnings and infos (DIAG_* order)
breakpoint: u32breakpoints in the gutter
exec_line: u32the background of a debugger’s current line (the editor’s background: a frame in exec_mark instead) and its arrow in the gutter
exec_mark: u32Implementations§
Trait Implementations§
impl StructuralPartialEq for CodeTheme
Auto Trait Implementations§
impl Forget for CodeTheme
impl Freeze for CodeTheme
impl RefUnwindSafe for CodeTheme
impl Send for CodeTheme
impl Sync for CodeTheme
impl Unpin for CodeTheme
impl UnsafeUnpin for CodeTheme
impl UnwindSafe for CodeTheme
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