pub struct Theme {
pub name: String,
pub corner_radius: i32,
pub title_bar: TitleBar,
pub colors: Colors,
pub buttons: Buttons,
pub noise_amplitude: f64,
pub shadow_extent: i32,
pub animation_duration_ms: i32,
}Expand description
A complete decoration theme.
Fields§
§name: StringWhat to call it.
corner_radius: i32Corner rounding, in pixels.
title_bar: TitleBarThe title bar.
colors: ColorsColors.
Buttons.
noise_amplitude: f64How much dither to mix into the panel gradient, 0 to 1.
A flat gradient across a wide title bar bands visibly at 8 bits per channel; a little noise breaks the bands up. Costs a per-pixel multiply, which is why a cheaper theme turns it down.
shadow_extent: i32How far the shadow reaches, in pixels. Zero means none.
animation_duration_ms: i32How long a decoration animation runs. Zero means none.
Trait Implementations§
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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