Skip to content

feat: implement lazy-loading assets and 3D text engine#50

Merged
0xarchit merged 17 commits into
mainfrom
feature/lazy-video
May 9, 2026
Merged

feat: implement lazy-loading assets and 3D text engine#50
0xarchit merged 17 commits into
mainfrom
feature/lazy-video

Conversation

@0xarchit
Copy link
Copy Markdown
Owner

@0xarchit 0xarchit commented May 9, 2026

Description:
This major update transitions PauseCat to a lightweight, lazy-load architecture and introduces a high-fidelity 3D customization suite for the break experience.

Key Deliverables:

  1. Lazy Asset Architecture:

    • Reduced MSI Size: Moved the ~2MB default.webm out of the installer. It is now fetched on first run via a robust background syncer in src/updater.rs.
    • Resilient Syncing: Implemented a 3-stage retry loop and a "Retry" UI button to handle transient network failures.
    • Real-time Progress: Added a 0-100% progress bar in the settings footer to track asset synchronization live.
  2. Cinematic 3D Text Engine:

    • Volumetric Extrusion: Added physical "Heavy" 3D depth to custom break text using a dynamic multi-layered shadow engine.
    • Full 3D Orientation: Added X, Y, and Z axis rotation controls for precise text angling.
    • Neon Glow FX: Integrated a granular bloom/glow intensity slider and custom glow color picker.
    • Adaptive Coloring: Smart logic that automatically flips text between Light/Dark variants based on the system theme for maximum visibility.
  3. UI/UX Refinements:

    • Proportional Live Preview: Locked the preview area to a 16:9 cinematic aspect ratio with virtual 1080p scaling, ensuring a 1:1 match with real monitor proportions.
    • Aligned Grid Layout: Overhauled the Settings UI with a professional grid system.
    • Reliable State Management: Implemented a formal "Ready" handshake between the WebView and Rust backend to eliminate hydration race conditions and "Hard Broken" UI states.
  4. Content & Logic Upgrades:

    • Added professional default break messages with randomization enabled.
    • Replaced the simple mute toggle with a 0-100% volume slider for cinematic videos.
    • Restored full management for Whitelist apps and Custom Message tags.

Technical Impact:

  • Drastically smaller initial download footprint.
  • More robust multi-threaded asset management.
  • Significantly higher visual polish and user customization options.

By submitting this PR, I agree to follow the project's Code of Conduct.

@0xarchit 0xarchit self-assigned this May 9, 2026
@0xarchit 0xarchit linked an issue May 9, 2026 that may be closed by this pull request
1 task
@0xarchit 0xarchit added the rust Pull requests that update rust code label May 9, 2026
Copy link
Copy Markdown
Owner Author

@0xarchit 0xarchit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes reviewed

@0xarchit 0xarchit merged commit 59ddc51 into main May 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Implement lazy-loading assets and cinematic 3D text engine

1 participant