[package] name = "theming" version = "0.3.0" edition = "2024" license = "MIT" description = "Runtime theme swapping demo for Makepad 2.0 — consumes nigig-core for persistence." [dependencies] # ── Internal shared library ────────────────────────────────────────────── # Provides: # - persistence::json::{save_json_to, load_json_from, load_json_from_or_default} # - state::{ThemeState, LanguageState} (data + load/save, no Makepad dep) # - error::PersistenceError # # Adjust the path if nigig-core lives elsewhere in your workspace. nigig-core = { path = "../../nigig-core" } # ── Makepad 2.0 ────────────────────────────────────────────────────────── # Use the same makepad-widgets source as nigig-core so the ScriptVm ABI # matches. If nigig-core uses a path dep, match it here. If it uses git, # match that. # makepad-widgets = { git = "https://github.com/makepad/makepad.git", branch = "dev" } makepad-widgets = { git = "https://gitdab.com/andodeki/makepad", rev = "a79f0dce4d477e2232344facca0798d3f25043ec"} # ── Robius integration ─────────────────────────────────────────────────── # robius-use-makepad sets up the right Makepad feature flags for # mobile/desktop. robius-directories resolves the app data dir on # platforms where std `directories` doesn't work (Android). robius-use-makepad = "0.1.1" robius-directories = { git = "https://github.com/project-robius/robius", rev = "b766e62b0600f5d2ee21cc6995648346fc277bd8" } # serde is re-exported transitively via nigig-core, but we list it # explicitly so the theming app can derive Serialize/Deserialize on its # own types if needed. serde = { version = "1", features = ["derive"] }