makeover-immediate
The immediate-mode renderer for makeover-layout.
Written against egui. egui draws one stroke per widget with no per-side control, so this crate paints the two-tone lit edge by hand.
What it owns
The expression, and nothing else. Two mitred polylines for a bevel and a
Frame for a filled region.
It makes no substitutions. Palette::well is a required Color32, read from
makeover's derived surface-well.
It picks no colours and no sizes. Palette is handed in already resolved, and
every radius, margin, stroke width and floor arrives in a style type
(FrameStyle, FieldStyle, PieceStyle, TableStyle, host::Metrics). Where
one has a default it is the suite's number: the focus ring (2 points) and the
target floor (24 points) match makeover-webview.
makeover is linked only by the theme feature, which adds
Palette::from_theme. Without it an app builds a palette from
Palette::two_tone and a setter per colour.
The vocabulary members (fields, columns, meters, controls, facts, figures and
charts) are drawn by quasi-immediate. This crate draws what carries no
member: depth, the palette, a table's per-frame facts and cell tones, tokens
and waits, and the egui visuals a host starts from.
Usage
use ;
use Depth;
frame;
A pressed control is Depth::Raised.pressed(), asked at each call site.
Status
On crates.io. Design lives in the wiki note makeover-immediate; work is
tracked in GoingsOn under the makeover project, one project for the suite.
Licence
MIT.