pub struct ThemeConfig {Show 16 fields
pub gen: Generation,
pub text_color: Color,
pub muted_text_color: Color,
pub primary_color: Color,
pub popup_selected_background: Color,
pub border_color: Color,
pub focused_border_color: Color,
pub secondary_color: Color,
pub info_color: Color,
pub json_key_color: Color,
pub json_string_color: Color,
pub json_number_color: Color,
pub json_bool_color: Color,
pub json_null_color: Color,
pub accent_yellow: Color,
pub code_colors: CodeColors,
}Fields§
§gen: Generation§text_color: Color§muted_text_color: Color§primary_color: Color§popup_selected_background: Color§border_color: Color§focused_border_color: Color§secondary_color: Color§info_color: Color§json_key_color: Color§json_string_color: Color§json_number_color: Color§json_bool_color: Color§json_null_color: Color§accent_yellow: Color§code_colors: CodeColorsImplementations§
Source§impl ThemeConfig
impl ThemeConfig
pub fn new() -> Self
pub fn builder() -> ThemeBuilder
pub fn with_generation(self, gen: Generation) -> Self
pub fn with_text_color(self, c: Color) -> Self
pub fn with_muted_text_color(self, c: Color) -> Self
pub fn with_primary_color(self, c: Color) -> Self
pub fn with_popup_selected_background(self, c: Color) -> Self
pub fn with_border_color(self, c: Color) -> Self
pub fn with_focused_border_color(self, c: Color) -> Self
pub fn with_secondary_color(self, c: Color) -> Self
pub fn with_info_color(self, c: Color) -> Self
pub fn with_json_key_color(self, c: Color) -> Self
pub fn with_json_string_color(self, c: Color) -> Self
pub fn with_json_number_color(self, c: Color) -> Self
pub fn with_json_bool_color(self, c: Color) -> Self
pub fn with_json_null_color(self, c: Color) -> Self
pub fn with_accent_yellow(self, c: Color) -> Self
pub fn with_code_colors(self, colors: CodeColors) -> Self
Trait Implementations§
Source§impl Clone for ThemeConfig
impl Clone for ThemeConfig
Source§fn clone(&self) -> ThemeConfig
fn clone(&self) -> ThemeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThemeConfig
impl Debug for ThemeConfig
Source§impl Default for ThemeConfig
impl Default for ThemeConfig
Source§impl RichTextTheme for ThemeConfig
impl RichTextTheme for ThemeConfig
fn generation(&self) -> Generation
fn get_text_color(&self) -> Color
fn get_muted_text_color(&self) -> Color
fn get_primary_color(&self) -> Color
fn get_popup_selected_background(&self) -> Color
fn get_border_color(&self) -> Color
fn get_focused_border_color(&self) -> Color
fn get_secondary_color(&self) -> Color
fn get_info_color(&self) -> Color
fn get_json_key_color(&self) -> Color
fn get_json_string_color(&self) -> Color
fn get_json_number_color(&self) -> Color
fn get_json_bool_color(&self) -> Color
fn get_json_null_color(&self) -> Color
fn get_accent_yellow(&self) -> Color
fn get_code_colors(&self) -> CodeColors
fn get_popup_selected_text_color(&self) -> Color
fn get_background_color(&self) -> Color
fn get_mermaid_theme(&self) -> MermaidTheme
impl Copy for ThemeConfig
Auto Trait Implementations§
impl Freeze for ThemeConfig
impl RefUnwindSafe for ThemeConfig
impl Send for ThemeConfig
impl Sync for ThemeConfig
impl Unpin for ThemeConfig
impl UnsafeUnpin for ThemeConfig
impl UnwindSafe for ThemeConfig
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,
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