pub struct EditorTheme {
pub name: String,
pub palette: ColorPalette,
pub font_family: String,
pub font_size_base: i32,
pub border_radius: i32,
pub spacing_unit: i32,
pub animation_duration: i32,
}Fields§
§name: String§palette: ColorPalette§font_family: String§font_size_base: i32§border_radius: i32§spacing_unit: i32§animation_duration: i32Implementations§
Source§impl EditorTheme
impl EditorTheme
pub fn default() -> EditorTheme
pub fn light() -> EditorTheme
pub fn monokai() -> EditorTheme
pub fn nord() -> EditorTheme
Trait Implementations§
Source§impl Clone for EditorTheme
impl Clone for EditorTheme
Source§fn clone(&self) -> EditorTheme
fn clone(&self) -> EditorTheme
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 EditorTheme
impl Debug for EditorTheme
Source§impl Renderable for EditorTheme
impl Renderable for EditorTheme
Auto Trait Implementations§
impl Freeze for EditorTheme
impl RefUnwindSafe for EditorTheme
impl Send for EditorTheme
impl Sync for EditorTheme
impl Unpin for EditorTheme
impl UnwindSafe for EditorTheme
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