Onboarding: add Lottie animations to first-run pages #694

Open
opened 2026-05-13 14:22:19 +00:00 by johnny9 · 0 comments
johnny9 commented 2026-05-13 14:22:19 +00:00 (Migrated from github.com)

Parent: #566

Release Target

Post-v1.0.

Priority

Lower-priority polish after the core onboarding flow is release-ready.

Goal

Add motion illustrations to the QML onboarding pages so first-run setup feels more polished and better explains each step without changing the underlying onboarding flow.

Current onboarding pages include:

  • OnboardingCover.qml
  • OnboardingStrengthen.qml
  • OnboardingBlockclock.qml
  • OnboardingStorageLocation.qml
  • OnboardingStorageAmount.qml
  • OnboardingConnection.qml

Code Gap

The onboarding pages currently use static imagery and ordinary QML page transitions. The design assets may include Lottie animations, but the app does not yet have a settled Lottie pipeline for Qt/QML or a compatibility policy for converting and shipping those assets.

Qt Guidance Snapshot

Qt's current Qt 6.11 documentation describes three relevant paths:

  • Use LottieAnimation from Qt.labs.lottieqt to load Lottie files directly in QML. This is useful for validation, but Qt documents that it renders through a QPainter/software path and may have performance limits for larger or complex illustrations.
  • Use lottietoqml or qt_target_qml_from_lottie() to convert known Lottie files into QML. Qt documents this as a Qt Quick / hardware-rendered path, and the lottietoqml example says pregenerating QML is usually preferable for known assets because it allows preprocessing for faster loading.
  • Use VectorImage with the Lottie plugin for runtime loading of trusted Lottie files. This is convenient, but likely less attractive for app-owned onboarding assets if we can pre-generate the QML.

References:

Suggested Approaches

  1. Prefer a build-time conversion path for final app-owned assets.

    • Evaluate lottietoqml and, if the project can require the needed Qt version/tooling, qt_target_qml_from_lottie().
    • Generate QML components for each approved onboarding animation and include them in the QML resources/module.
    • Use CURVE_RENDERER and OPTIMIZE_PATHS where they improve output quality or load/runtime performance.
  2. Use direct LottieAnimation as an exploration and compatibility harness.

    • Load the current design Lottie JSON assets directly to find unsupported features and visual mismatches.
    • Use this to validate loop points, sizing, playback behavior, and performance before choosing the final packaging path.
  3. Decide how to handle the current Qt baseline.

    • This repo currently requires Qt 6.2 in the top-level CMake configuration.
    • qt_target_qml_from_lottie() is documented as introduced in Qt 6.11, and VectorImage Lottie loading depends on newer Qt Quick VectorImage/Lottie plugin behavior.
    • Decide whether this issue should wait for #68 / a Qt dependency update, check in generated QML from a pinned conversion tool, or use another interim path.
  4. Audit the current Lottie assets before implementation.

    • Confirm source, license, and intended page mapping for each animation.
    • Check for Qt Lottie limitations such as expressions, image/text assets, masks, blend modes, time stretch, gradient strokes, nested repeaters, or multiple active trim paths.
    • Simplify or re-export animations where needed so they render correctly in Qt.
  5. Add an onboarding animation component rather than one-off page code.

    • Introduce a small reusable QML wrapper for animated onboarding artwork.
    • Provide static fallback artwork if an animation is unavailable, disabled, or fails to load.
    • Define loop/pause behavior and avoid distracting infinite motion on pages where the user is expected to read or choose settings.

Acceptance Criteria

  • The chosen Lottie integration path is documented in the PR and compatible with the project's Qt/dependency policy.
  • Approved onboarding animations render correctly on Linux, macOS, and Windows.
  • The onboarding pages use the animations without breaking layout, keyboard navigation, screen readers, or existing page transitions.
  • Static fallback behavior exists for unsupported or disabled animation cases.
  • Clean builds include any generated QML/resources needed to render the animations.
Parent: #566 ## Release Target Post-v1.0. ## Priority Lower-priority polish after the core onboarding flow is release-ready. ## Goal Add motion illustrations to the QML onboarding pages so first-run setup feels more polished and better explains each step without changing the underlying onboarding flow. Current onboarding pages include: - `OnboardingCover.qml` - `OnboardingStrengthen.qml` - `OnboardingBlockclock.qml` - `OnboardingStorageLocation.qml` - `OnboardingStorageAmount.qml` - `OnboardingConnection.qml` ## Code Gap The onboarding pages currently use static imagery and ordinary QML page transitions. The design assets may include Lottie animations, but the app does not yet have a settled Lottie pipeline for Qt/QML or a compatibility policy for converting and shipping those assets. ## Qt Guidance Snapshot Qt's current Qt 6.11 documentation describes three relevant paths: - Use `LottieAnimation` from `Qt.labs.lottieqt` to load Lottie files directly in QML. This is useful for validation, but Qt documents that it renders through a QPainter/software path and may have performance limits for larger or complex illustrations. - Use `lottietoqml` or `qt_target_qml_from_lottie()` to convert known Lottie files into QML. Qt documents this as a Qt Quick / hardware-rendered path, and the `lottietoqml` example says pregenerating QML is usually preferable for known assets because it allows preprocessing for faster loading. - Use `VectorImage` with the Lottie plugin for runtime loading of trusted Lottie files. This is convenient, but likely less attractive for app-owned onboarding assets if we can pre-generate the QML. References: - https://doc.qt.io/qt-6/qtlottieanimation-index.html - https://doc.qt.io/qt-6/lottietoqml.html - https://doc.qt.io/qt-6/qt-target-qml-from-lottie.html - https://doc.qt.io/qt-6/qml-qtquick-vectorimage-vectorimage.html - https://doc.qt.io/qt-6/qml-qt-labs-lottieqt-lottieanimation.html ## Suggested Approaches 1. Prefer a build-time conversion path for final app-owned assets. - Evaluate `lottietoqml` and, if the project can require the needed Qt version/tooling, `qt_target_qml_from_lottie()`. - Generate QML components for each approved onboarding animation and include them in the QML resources/module. - Use `CURVE_RENDERER` and `OPTIMIZE_PATHS` where they improve output quality or load/runtime performance. 2. Use direct `LottieAnimation` as an exploration and compatibility harness. - Load the current design Lottie JSON assets directly to find unsupported features and visual mismatches. - Use this to validate loop points, sizing, playback behavior, and performance before choosing the final packaging path. 3. Decide how to handle the current Qt baseline. - This repo currently requires Qt 6.2 in the top-level CMake configuration. - `qt_target_qml_from_lottie()` is documented as introduced in Qt 6.11, and `VectorImage` Lottie loading depends on newer Qt Quick VectorImage/Lottie plugin behavior. - Decide whether this issue should wait for #68 / a Qt dependency update, check in generated QML from a pinned conversion tool, or use another interim path. 4. Audit the current Lottie assets before implementation. - Confirm source, license, and intended page mapping for each animation. - Check for Qt Lottie limitations such as expressions, image/text assets, masks, blend modes, time stretch, gradient strokes, nested repeaters, or multiple active trim paths. - Simplify or re-export animations where needed so they render correctly in Qt. 5. Add an onboarding animation component rather than one-off page code. - Introduce a small reusable QML wrapper for animated onboarding artwork. - Provide static fallback artwork if an animation is unavailable, disabled, or fails to load. - Define loop/pause behavior and avoid distracting infinite motion on pages where the user is expected to read or choose settings. ## Acceptance Criteria - The chosen Lottie integration path is documented in the PR and compatible with the project's Qt/dependency policy. - Approved onboarding animations render correctly on Linux, macOS, and Windows. - The onboarding pages use the animations without breaking layout, keyboard navigation, screen readers, or existing page transitions. - Static fallback behavior exists for unsupported or disabled animation cases. - Clean builds include any generated QML/resources needed to render the animations.
Sign in to join this conversation.
No description provided.