pub struct Motion {
pub reduced: bool,
pub speed: f64,
pub spring: f64,
pub damping: f64,
pub fade_in_ms: u32,
pub fade_out_ms: u32,
pub fade_delay_ms: u32,
pub fast_ms: u32,
pub move_ms: u32,
pub waves: bool,
pub scroll_step: u32,
pub smooth_scroll: bool,
}Expand description
Animation constants. The spring values feed QML’s SpringAnimation.
Fields§
§reduced: boolTurns animations off: views appear and change at once, and the island takes its new shape without a spring.
speed: f64How fast every animation runs: 2 is twice as fast, 0.5 half.
spring: f64§damping: f64Between 0 and 1. Lower values bounce more.
fade_in_ms: u32§fade_out_ms: u32§fade_delay_ms: u32How long the new view waits before fading in, so the shape moves first.
fast_ms: u32Small state changes: colors, hovers.
move_ms: u32Things moving or resizing inside a view, with a slight overshoot.
waves: boolProgress lines and rings wave while something goes on: the media line while a track plays, the battery ring while it charges, the timer’s ring while it runs. Off draws every one of them flat; each module with a wave can also turn off its own.
scroll_step: u32How far a mouse wheel’s step scrolls a list, in pixels.
smooth_scroll: boolA wheel’s steps glide instead of jumping, and a touchpad’s scroll coasts on after the fingers lift. Off scrolls the way Qt does by itself.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Motion
impl<'de> Deserialize<'de> for Motion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Motion
impl JsonSchema for Motion
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more