Collapse the screen to a dot, or expand a dot into the new screen.
More...
Collapse the screen to a dot, or expand a dot into the new screen.
◆ DOT_ANIMATION_STROKE_WIDTH
| #define DOT_ANIMATION_STROKE_WIDTH 12 |
Stroke width of the dot ring, in pixels.
◆ STATIC_DOT_ANIMATION_DURATION_MS
| #define STATIC_DOT_ANIMATION_DURATION_MS 233 |
Duration of the static dot transitions, in milliseconds.
Approximates the visuals of the design team's videos.
◆ compositor_dot_transition_app_fetch_get()
Get the dot transition shown when leaving the app fetch screen.
- Returns
- Transition, or NULL if app-to-app transitions should be skipped.
◆ compositor_dot_transition_timeline_get()
| const CompositorTransition * compositor_dot_transition_timeline_get |
( |
bool |
timeline_is_future, |
|
|
bool |
timeline_is_destination |
|
) |
| |
Get the dot transition into or out of the timeline.
- Parameters
-
| timeline_is_future | Whether the timeline shows the future (otherwise the past). |
| timeline_is_destination | Whether the transition goes to the timeline. |
- Returns
- Transition, or NULL if app-to-app transitions should be skipped.
◆ compositor_dot_transitions_collapsing_ring_animation_update()
| void compositor_dot_transitions_collapsing_ring_animation_update |
( |
GContext * |
ctx, |
|
|
uint32_t |
distance_normalized, |
|
|
GColor |
outer_ring_color, |
|
|
GColor |
inner_ring_color |
|
) |
| |
Draw a ring collapsing from the display edges to a dot at its center.
- Parameters
-
| ctx | Graphics context to draw into; the ring is centered in its clip box. |
| distance_normalized | Animation progress, 0 to ANIMATION_NORMALIZED_MAX. |
| outer_ring_color | Color of the collapsing outer ring. |
| inner_ring_color | Color of the thin ring along its inner edge. |