What problem does it solve?
Makepad 2.0 replaced the compile-time live_design! macro system with the runtime script_mod! macro and Splash scripting language, breaking every existing 1.x codebase. This Skill provides the complete syntax mapping, struct migration patterns, and pitfall checklist needed to port legacy Makepad applications without guesswork.
Core Features & Use Cases
- Complete Syntax Mapping: Tables covering every change from live_design! to script_mod!, including angle brackets to curly braces, equals to colons, theme constants to theme.* namespace, and shader function rewrites.
- Struct and Derive Migration: Step-by-step conversion of #[derive(Live, LiveHook)] to #[derive(Script, ScriptHook)], the required #[source] ScriptObjectRef field, and #[repr(C)] draw shader field ordering rules.
- Pitfall Checklist: A 20+ item migration checklist covering common failures like missing height: Fit, hex colors needing #x prefix, and widget registration ordering in App::run.
- Use Case: You have a Makepad 1.x app using live_design! with <Button> widgets and apply_over calls. This Skill walks you through converting each file to script_mod! syntax, updating derives, and fixing runtime property updates with script_apply_eval!.
Quick Start
Ask the AI to migrate your Makepad 1.x widget file using live_design syntax to the Makepad 2.0 script_mod format.