Expand description
Themes: the look of .yui screens, apart from their markup.
A screen’s markup describes what’s on it; without a theme it draws in
yog-ui’s plain look (flat colours). A theme gives each kind of element
(Button, ListView, Screen, …) default attributes — the same
attributes .yui writes (bg, color, hover:bg, …) — that apply
wherever the element doesn’t set them itself or through a style.
A .yui picks one with <Screen theme="minecraft:vanilla">: a built-in
theme (Theme::builtin) or a mod’s .ytheme file — JSON shaped like
VANILLA: { "Button": { "bg": "sprite:button", ... }, ... }.
Structs§
- Theme
- Element kind → default attributes.
Constants§
- VANILLA
- Vanilla Minecraft’s look: the grey window, stone buttons, inset slots for lists, dark-grey labels.
Type Aliases§
- Rule
- One element kind’s defaults:
(attribute, value).