pub struct Theme {
pub background: Color32,
pub grid: Color32,
pub primary_curve: Color32,
pub secondary_curve: Color32,
pub text: Color32,
pub axis: Color32,
pub is_dark: bool,
}Expand description
Theme for diagram rendering
Fields§
§background: Color32Background color
grid: Color32Grid line color
primary_curve: Color32Primary curve color (C0-C180)
secondary_curve: Color32Secondary curve color (C90-C270)
text: Color32Text/label color
axis: Color32Axis color
is_dark: boolWhether this is a dark theme
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)