name: 04-moxin-studio-ui-patterns description: Makepad UI patterns in Moxin Studio: live_design layout, event handling, apply_over usage, shader-driven theming, and animation lifecycles. Use when editing UI or behavior.
Moxin Studio UI Patterns
1. Overview
Follow Makepad patterns for event handling and runtime updates. Use apply_over for dynamic changes and keep hover handling before action extraction.
2. UI workflow
- Build layout in
live_design!using theme constants. - Implement
Widget::handle_eventand callself.view.handle_event. - Handle hover events before
Event::Actionsearly return. - Use
apply_overfor visibility and shader instance updates. - Use shader time or
Event::NextFramefor animations.
3. References
- references/ui-workflow.md
- references/hover-and-apply-over.md
- references/ui-edge-cases.md