Skip to main content

CodeThemePalette

Struct CodeThemePalette 

Source
pub struct CodeThemePalette { /* private fields */ }
Expand description

Resolved VS Code Eva Light Bold / Eva Dark Bold color palette for EuvCodeBlock and Markdown syntax chrome.

Implementations§

Source§

impl CodeThemePalette

Exact VS Code Eva Light Bold / Eva Dark Bold palette resolution for CodeThemePalette.

Source

pub fn resolve(mode: ThemeMode) -> Self

Resolves the exact VS Code Eva Light Bold or Eva Dark Bold palette for mode.

§Arguments
  • ThemeMode - Active light or dark theme mode.
§Returns
  • Self - Exact Eva theme color palette.
Source

pub fn token_style(&self, kind: CodeTokenKind) -> (Color, FontWeight)

Returns (Color, FontWeight) matching the exact VS Code Eva Light Bold / Eva Dark Bold TextMate rule for kind.

§Arguments
  • &Self - Resolved Eva palette reference.
  • CodeTokenKind - Token classification.
§Returns
  • (Color, FontWeight) - Exact token color and font weight.
Source§

impl CodeThemePalette

Source

pub fn get_theme_name(&self) -> &&'static str

Source

pub fn get_mut_theme_name(&mut self) -> &mut &'static str

Source

pub fn set_theme_name(&mut self, val: &'static str) -> &mut Self

Source

pub fn get_background(&self) -> Color

Source

pub fn get_mut_background(&mut self) -> &mut Color

Source

pub fn set_background(&mut self, val: Color) -> &mut Self

Source

pub fn get_header_bg(&self) -> Color

Source

pub fn get_mut_header_bg(&mut self) -> &mut Color

Source

pub fn set_header_bg(&mut self, val: Color) -> &mut Self

Source

pub fn get_border(&self) -> Color

Source

pub fn get_mut_border(&mut self) -> &mut Color

Source

pub fn set_border(&mut self, val: Color) -> &mut Self

Source

pub fn get_foreground(&self) -> Color

Source

pub fn get_mut_foreground(&mut self) -> &mut Color

Source

pub fn set_foreground(&mut self, val: Color) -> &mut Self

Source

pub fn get_line_number(&self) -> Color

Source

pub fn get_mut_line_number(&mut self) -> &mut Color

Source

pub fn set_line_number(&mut self, val: Color) -> &mut Self

Source

pub fn get_line_highlight(&self) -> Color

Source

pub fn get_mut_line_highlight(&mut self) -> &mut Color

Source

pub fn set_line_highlight(&mut self, val: Color) -> &mut Self

Source

pub fn get_comment(&self) -> Color

Source

pub fn get_mut_comment(&mut self) -> &mut Color

Source

pub fn set_comment(&mut self, val: Color) -> &mut Self

Source

pub fn get_keyword(&self) -> Color

Source

pub fn get_mut_keyword(&mut self) -> &mut Color

Source

pub fn set_keyword(&mut self, val: Color) -> &mut Self

Source

pub fn get_control(&self) -> Color

Source

pub fn get_mut_control(&mut self) -> &mut Color

Source

pub fn set_control(&mut self, val: Color) -> &mut Self

Source

pub fn get_operator(&self) -> Color

Source

pub fn get_mut_operator(&mut self) -> &mut Color

Source

pub fn set_operator(&mut self, val: Color) -> &mut Self

Source

pub fn get_string(&self) -> Color

Source

pub fn get_mut_string(&mut self) -> &mut Color

Source

pub fn set_string(&mut self, val: Color) -> &mut Self

Source

pub fn get_number(&self) -> Color

Source

pub fn get_mut_number(&mut self) -> &mut Color

Source

pub fn set_number(&mut self, val: Color) -> &mut Self

Source

pub fn get_constant(&self) -> Color

Source

pub fn get_mut_constant(&mut self) -> &mut Color

Source

pub fn set_constant(&mut self, val: Color) -> &mut Self

Source

pub fn get_function(&self) -> Color

Source

pub fn get_mut_function(&mut self) -> &mut Color

Source

pub fn set_function(&mut self, val: Color) -> &mut Self

Source

pub fn get_ty(&self) -> Color

Source

pub fn get_mut_ty(&mut self) -> &mut Color

Source

pub fn set_ty(&mut self, val: Color) -> &mut Self

Source

pub fn get_primitive(&self) -> Color

Source

pub fn get_mut_primitive(&mut self) -> &mut Color

Source

pub fn set_primitive(&mut self, val: Color) -> &mut Self

Source

pub fn get_property(&self) -> Color

Source

pub fn get_mut_property(&mut self) -> &mut Color

Source

pub fn set_property(&mut self, val: Color) -> &mut Self

Source

pub fn get_punctuation(&self) -> Color

Source

pub fn get_mut_punctuation(&mut self) -> &mut Color

Source

pub fn set_punctuation(&mut self, val: Color) -> &mut Self

Source

pub fn get_inline_code_bg(&self) -> Color

Source

pub fn get_mut_inline_code_bg(&mut self) -> &mut Color

Source

pub fn set_inline_code_bg(&mut self, val: Color) -> &mut Self

Source

pub fn get_inline_code_fg(&self) -> Color

Source

pub fn get_mut_inline_code_fg(&mut self) -> &mut Color

Source

pub fn set_inline_code_fg(&mut self, val: Color) -> &mut Self

Source

pub fn get_quote_bg(&self) -> Color

Source

pub fn get_mut_quote_bg(&mut self) -> &mut Color

Source

pub fn set_quote_bg(&mut self, val: Color) -> &mut Self

Source

pub fn get_quote_border(&self) -> Color

Source

pub fn get_mut_quote_border(&mut self) -> &mut Color

Source

pub fn set_quote_border(&mut self, val: Color) -> &mut Self

Source

pub fn get_diff_add(&self) -> Color

Source

pub fn get_mut_diff_add(&mut self) -> &mut Color

Source

pub fn set_diff_add(&mut self, val: Color) -> &mut Self

Source

pub fn get_diff_del(&self) -> Color

Source

pub fn get_mut_diff_del(&mut self) -> &mut Color

Source

pub fn set_diff_del(&mut self, val: Color) -> &mut Self

Trait Implementations§

Source§

impl Clone for CodeThemePalette

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CodeThemePalette

Source§

impl Debug for CodeThemePalette

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CodeThemePalette

Source§

impl PartialEq for CodeThemePalette

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CodeThemePalette

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.