function · ui
set_theme
Selects typed scale and accessibility theme constraints.
ui.set_theme(theme_contract)
- Stable ID
ui.set-theme- Owner
- app.ScriptPackageHost
- Authority
- presentation
- Timing
- composition
- Availability
- Phase 14 package callbacks
- Side effects
- records bounded detached presentation intent
- Determinism
- Host-created package identity and per-callback budgets.
- Introduced
- 1.0.0
Usage
Call during composition to append validated semantic presentation state. This function cannot mutate simulation owners.
Parameters
- theme_contract: table containing id, text_scale, high_contrast, and reduced_motion.
Returns
No gameplay value. The call appends or updates semantic presentation state for the current composition pass.
Cost
Counts against the package composition instruction and surface work budgets; it does not traverse simulation ownership.
Fields
This symbol has no fields.
Errors
Examples
ui.set_theme({id = "worldforge.standard", text_scale = 1.0, high_contrast = false, reduced_motion = false})
API history
- 1.0.0: Runtime contract published from the complete Phase 14 registry.