pub struct MarkdownViewerThemePreference {Show 15 fields
pub color: Preference<Color>,
pub background_code: Preference<Color>,
pub color_code: Preference<Color>,
pub background_blockquote: Preference<Color>,
pub border_blockquote: Preference<Color>,
pub background_divider: Preference<Color>,
pub heading_h1: Preference<f32>,
pub heading_h2: Preference<f32>,
pub heading_h3: Preference<f32>,
pub heading_h4: Preference<f32>,
pub heading_h5: Preference<f32>,
pub heading_h6: Preference<f32>,
pub paragraph_size: Preference<f32>,
pub code_font_size: Preference<f32>,
pub table_font_size: Preference<f32>,
}Expand description
Theming properties for the MarkdownViewer component.
Fields§
§color: Preference<Color>§background_code: Preference<Color>§color_code: Preference<Color>§background_blockquote: Preference<Color>§border_blockquote: Preference<Color>§background_divider: Preference<Color>§heading_h1: Preference<f32>§heading_h2: Preference<f32>§heading_h3: Preference<f32>§heading_h4: Preference<f32>§heading_h5: Preference<f32>§heading_h6: Preference<f32>§paragraph_size: Preference<f32>§code_font_size: Preference<f32>§table_font_size: Preference<f32>Implementations§
Source§impl MarkdownViewerThemePreference
impl MarkdownViewerThemePreference
Sourcepub fn apply_optional(&mut self, optional: &MarkdownViewerThemePartial)
pub fn apply_optional(&mut self, optional: &MarkdownViewerThemePartial)
Checks each field in optional and if it’s Some, it overwrites the corresponding self field.
Sourcepub fn resolve(&mut self, colors_sheet: &ColorsSheet) -> MarkdownViewerTheme
pub fn resolve(&mut self, colors_sheet: &ColorsSheet) -> MarkdownViewerTheme
Checks each field in optional and if it’s Some, it overwrites the corresponding self field.
Trait Implementations§
Source§impl Clone for MarkdownViewerThemePreference
impl Clone for MarkdownViewerThemePreference
Source§fn clone(&self) -> MarkdownViewerThemePreference
fn clone(&self) -> MarkdownViewerThemePreference
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 PartialEq for MarkdownViewerThemePreference
impl PartialEq for MarkdownViewerThemePreference
Source§fn eq(&self, other: &MarkdownViewerThemePreference) -> bool
fn eq(&self, other: &MarkdownViewerThemePreference) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MarkdownViewerThemePreference
Auto Trait Implementations§
impl Freeze for MarkdownViewerThemePreference
impl RefUnwindSafe for MarkdownViewerThemePreference
impl Send for MarkdownViewerThemePreference
impl Sync for MarkdownViewerThemePreference
impl Unpin for MarkdownViewerThemePreference
impl UnwindSafe for MarkdownViewerThemePreference
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> ComponentProps for T
impl<T> ComponentProps for T
fn changed(&self, other: &(dyn ComponentProps + 'static)) -> bool
§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