makepad/examples/automate
vjroger 1f9be26b3c uizoo, automate: a demo that redeclares an input with uniform draws nothing
A merge that adds no function of its own and gives `uniform(..)` for an
input the base shader declares as an instance does not set it, and
nothing is logged. The draw shader comes from a cache keyed by its
functions (platform/src/draw_vars.rs, around line 1161), so such a merge
shares the shader already compiled for them, and its mapping; and a
value is read only when its io kind matches that mapping (around lines
831-837), so a uniform given where the mapping has an instance is passed
over. A merge that adds a function is compiled for itself instead.

That is what emptied these demos: RoundedView's color and border_color,
GradientYView's color_2 and Icon's color are instances. The layout and
align-and-scroll boxes drew as bare labels, the slug cards had no fill
or border, the scroll bar's gradient never reached red and the icon's
styling reference had no red ground. Those lines are plain now. The
align-and-scroll boxes also take theme colours, so their labels read in
light.

Where the base already declares the input as a uniform, the value did
apply: the buttons' colours and radius, the rotaries' sizes, paddings
and gaps, the knobs' gaps, ring sizes, needle length and disc colour,
RoundedView's border size and radius, and the automate example's scene
pads and transport toggles. Those lines are written plain only for
consistency, and the automate comments say so.

A plain View has no colour input and paints nothing: its pixel is
transparent and never reads color. So its wells get a pixel that paints
the colour, on the view, page flip, image and scroll pages, and in the
ui zoo pairs of the first three. The scroll wells also take the theme's
raised surface, so they stand apart from the page in light and in dark.

The storybook pages took the same change upstream already; this carries
the ui zoo and automate halves.
2026-10-02 08:48:51 +02:00
..
src uizoo, automate: a demo that redeclares an input with uniform draws nothing 2026-10-02 08:48:51 +02:00
Cargo.toml widgets, platform, script, draw: clean builds 7-9 s faster -- rare widgets leave widgets-core, the tweaker leaves the front crate, network and math_aot leave the build chain, and less generated code 2026-09-29 01:55:14 +02:00