pub struct EditorSyntaxThemePartial {Show 34 fields
pub text: Option<Preference<Color>>,
pub whitespace: Option<Preference<Color>>,
pub attribute: Option<Preference<Color>>,
pub boolean: Option<Preference<Color>>,
pub comment: Option<Preference<Color>>,
pub constant: Option<Preference<Color>>,
pub constructor: Option<Preference<Color>>,
pub escape: Option<Preference<Color>>,
pub function: Option<Preference<Color>>,
pub function_macro: Option<Preference<Color>>,
pub function_method: Option<Preference<Color>>,
pub keyword: Option<Preference<Color>>,
pub label: Option<Preference<Color>>,
pub module: Option<Preference<Color>>,
pub number: Option<Preference<Color>>,
pub operator: Option<Preference<Color>>,
pub property: Option<Preference<Color>>,
pub punctuation: Option<Preference<Color>>,
pub punctuation_bracket: Option<Preference<Color>>,
pub punctuation_delimiter: Option<Preference<Color>>,
pub punctuation_special: Option<Preference<Color>>,
pub string: Option<Preference<Color>>,
pub string_escape: Option<Preference<Color>>,
pub string_special: Option<Preference<Color>>,
pub tag: Option<Preference<Color>>,
pub text_literal: Option<Preference<Color>>,
pub text_reference: Option<Preference<Color>>,
pub text_title: Option<Preference<Color>>,
pub text_uri: Option<Preference<Color>>,
pub text_emphasis: Option<Preference<Color>>,
pub type_: Option<Preference<Color>>,
pub variable: Option<Preference<Color>>,
pub variable_builtin: Option<Preference<Color>>,
pub variable_parameter: Option<Preference<Color>>,
}Expand description
You can use this to change a theme for only one component, with the theme property.
Fields§
§text: Option<Preference<Color>>§whitespace: Option<Preference<Color>>§attribute: Option<Preference<Color>>§boolean: Option<Preference<Color>>§comment: Option<Preference<Color>>§constant: Option<Preference<Color>>§constructor: Option<Preference<Color>>§escape: Option<Preference<Color>>§function: Option<Preference<Color>>§function_macro: Option<Preference<Color>>§function_method: Option<Preference<Color>>§keyword: Option<Preference<Color>>§label: Option<Preference<Color>>§module: Option<Preference<Color>>§number: Option<Preference<Color>>§operator: Option<Preference<Color>>§property: Option<Preference<Color>>§punctuation: Option<Preference<Color>>§punctuation_bracket: Option<Preference<Color>>§punctuation_delimiter: Option<Preference<Color>>§punctuation_special: Option<Preference<Color>>§string: Option<Preference<Color>>§string_escape: Option<Preference<Color>>§string_special: Option<Preference<Color>>§tag: Option<Preference<Color>>§text_literal: Option<Preference<Color>>§text_reference: Option<Preference<Color>>§text_title: Option<Preference<Color>>§text_uri: Option<Preference<Color>>§text_emphasis: Option<Preference<Color>>§type_: Option<Preference<Color>>§variable: Option<Preference<Color>>§variable_builtin: Option<Preference<Color>>§variable_parameter: Option<Preference<Color>>Implementations§
Source§impl EditorSyntaxThemePartial
impl EditorSyntaxThemePartial
pub fn new() -> Self
pub fn text(self, text: impl Into<Color>) -> Self
pub fn whitespace(self, whitespace: impl Into<Color>) -> Self
pub fn attribute(self, attribute: impl Into<Color>) -> Self
pub fn boolean(self, boolean: impl Into<Color>) -> Self
pub fn comment(self, comment: impl Into<Color>) -> Self
pub fn constant(self, constant: impl Into<Color>) -> Self
pub fn constructor(self, constructor: impl Into<Color>) -> Self
pub fn escape(self, escape: impl Into<Color>) -> Self
pub fn function(self, function: impl Into<Color>) -> Self
pub fn function_macro(self, function_macro: impl Into<Color>) -> Self
pub fn function_method(self, function_method: impl Into<Color>) -> Self
pub fn keyword(self, keyword: impl Into<Color>) -> Self
pub fn label(self, label: impl Into<Color>) -> Self
pub fn module(self, module: impl Into<Color>) -> Self
pub fn number(self, number: impl Into<Color>) -> Self
pub fn operator(self, operator: impl Into<Color>) -> Self
pub fn property(self, property: impl Into<Color>) -> Self
pub fn punctuation(self, punctuation: impl Into<Color>) -> Self
pub fn punctuation_bracket(self, punctuation_bracket: impl Into<Color>) -> Self
pub fn punctuation_delimiter( self, punctuation_delimiter: impl Into<Color>, ) -> Self
pub fn punctuation_special(self, punctuation_special: impl Into<Color>) -> Self
pub fn string(self, string: impl Into<Color>) -> Self
pub fn string_escape(self, string_escape: impl Into<Color>) -> Self
pub fn string_special(self, string_special: impl Into<Color>) -> Self
pub fn tag(self, tag: impl Into<Color>) -> Self
pub fn text_literal(self, text_literal: impl Into<Color>) -> Self
pub fn text_reference(self, text_reference: impl Into<Color>) -> Self
pub fn text_title(self, text_title: impl Into<Color>) -> Self
pub fn text_uri(self, text_uri: impl Into<Color>) -> Self
pub fn text_emphasis(self, text_emphasis: impl Into<Color>) -> Self
pub fn type_(self, type_: impl Into<Color>) -> Self
pub fn variable(self, variable: impl Into<Color>) -> Self
pub fn variable_builtin(self, variable_builtin: impl Into<Color>) -> Self
pub fn variable_parameter(self, variable_parameter: impl Into<Color>) -> Self
Trait Implementations§
Source§impl Clone for EditorSyntaxThemePartial
impl Clone for EditorSyntaxThemePartial
Source§fn clone(&self) -> EditorSyntaxThemePartial
fn clone(&self) -> EditorSyntaxThemePartial
Returns a duplicate of the value. Read more
1.0.0 · 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 EditorSyntaxThemePartial
impl Debug for EditorSyntaxThemePartial
Source§impl Default for EditorSyntaxThemePartial
impl Default for EditorSyntaxThemePartial
Source§fn default() -> EditorSyntaxThemePartial
fn default() -> EditorSyntaxThemePartial
Returns the “default value” for a type. Read more
Source§impl PartialEq for EditorSyntaxThemePartial
impl PartialEq for EditorSyntaxThemePartial
impl StructuralPartialEq for EditorSyntaxThemePartial
Auto Trait Implementations§
impl Freeze for EditorSyntaxThemePartial
impl RefUnwindSafe for EditorSyntaxThemePartial
impl Send for EditorSyntaxThemePartial
impl Sync for EditorSyntaxThemePartial
impl Unpin for EditorSyntaxThemePartial
impl UnsafeUnpin for EditorSyntaxThemePartial
impl UnwindSafe for EditorSyntaxThemePartial
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,
§impl<T> ComponentProps for T
impl<T> ComponentProps for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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