Struct syntect::highlighting::ThemeSettings [] [src]

pub struct ThemeSettings {
    pub foreground: Option<Color>,
    pub background: Option<Color>,
    pub caret: Option<Color>,
    pub line_highlight: Option<Color>,
    pub misspelling: Option<Color>,
    pub minimap_border: Option<Color>,
    pub accent: Option<Color>,
    pub popup_css: Option<String>,
    pub phantom_css: Option<String>,
    pub bracket_contents_foreground: Option<Color>,
    pub bracket_contents_options: Option<UnderlineOption>,
    pub brackets_foreground: Option<Color>,
    pub brackets_background: Option<Color>,
    pub brackets_options: Option<UnderlineOption>,
    pub tags_foreground: Option<Color>,
    pub tags_options: Option<UnderlineOption>,
    pub highlight: Option<Color>,
    pub find_highlight: Option<Color>,
    pub find_highlight_foreground: Option<Color>,
    pub gutter: Option<Color>,
    pub gutter_foreground: Option<Color>,
    pub selection: Option<Color>,
    pub selection_foreground: Option<Color>,
    pub selection_background: Option<Color>,
    pub selection_border: Option<Color>,
    pub inactive_selection: Option<Color>,
    pub inactive_selection_foreground: Option<Color>,
    pub guide: Option<Color>,
    pub active_guide: Option<Color>,
    pub stack_guide: Option<Color>,
    pub highlight_foreground: Option<Color>,
    pub shadow: Option<Color>,
}

Various properties meant to be used to style a text editor. Basically all the styles that aren't directly applied to text like selection colour. Use this to make your editor UI match the highlighted text.

Fields

The default color for text.

The default backgound color of the view.

Color of the caret.

Color of the line the caret is in. Only used when the higlight_line setting is set to true.

The color to use for the squiggly underline drawn under misspelled words.

The color of the border drawn around the viewport area of the minimap. Only used when the draw_minimap_border setting is enabled.

A color made available for use by the theme.

CSS passed to popups.

CSS passed to phantoms.

Color of bracketed sections of text when the caret is in a bracketed section. Only applied when the match_brackets setting is set to true.

Controls certain options when the caret is in a bracket section. Only applied when the match_brackets setting is set to true.

Foreground color of the brackets when the caret is next to a bracket. Only applied when the match_brackets setting is set to true.

Background color of the brackets when the caret is next to a bracket. Only applied when the match_brackets setting is set to true.

Controls certain options when the caret is next to a bracket. Only applied when the match_brackets setting is set to true.

Color of tags when the caret is next to a tag. Only used when the match_tags setting is set to true.

Controls certain options when the caret is next to a tag. Only applied when the match_tags setting is set to true.

The border color for "other" matches.

Background color of regions matching the current search.

Text color of regions matching the current search.

Background color of the gutter.

Foreground color of the gutter.

The background color of selected text.

A color that will override the scope-based text color of the selection.

Deprecated!

This property is not part of the recognized tmTheme format. It may be removed in a future release.

Color of the selection regions border.

The background color of a selection in a view that is not currently focused.

A color that will override the scope-based text color of the selection in a view that is not currently focused.

Color of the guides displayed to indicate nesting levels.

Color of the guide lined up with the caret. Only applied if the indent_guide_options setting is set to draw_active.

Color of the current guide’s parent guide level. Only used if the indent_guide_options setting is set to draw_active.

Foreground color for regions added via sublime.add_regions() with the sublime.DRAW_OUTLINED flag added.

Deprecated! This setting does not exist in any available documentation. Use is discouraged, and it may be removed in a future release.

The color of the shadow used when a text area can be horizontally scrolled.

Trait Implementations

impl Clone for ThemeSettings
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ThemeSettings
[src]

Formats the value using the given formatter.

impl Default for ThemeSettings
[src]

Returns the "default value" for a type. Read more