#[non_exhaustive]pub enum Fill {
Page,
Raised,
Overlay,
Well,
Sunken,
}Expand description
A surface intent a region is filled with.
#[non_exhaustive], so a renderer must carry a wildcard arm and a new
member is additive rather than breaking. Added 0.4.0, after Sunken
(an additive member, 0.3.0) hard-broke makeover-tui and
makeover-immediate at compile time and left neither able to move until
both published. The vocabulary exists to grow and the renderers exist to
disagree about how much of it they answer, so growth must not be a
lockstep event. The renderer’s wildcard is not a hole: Fill is
resolved through a fallible lookup, and a missing intent is answered with
structure rather than with a substituted colour.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Page
The page behind everything.
Raised
A surface lifted off the page: cards, controls, menus, toasts.
Overlay
A surface floating above the page rather than resting on it.
Well
The inside of a well.
Sunken
A surface set back from the one it sits on, by colour and nothing else.
Not a well. A well is a hole with an edge, and the two are authored in
opposite directions: makeover derives surface-well by inverting
against the theme’s own content colour, while surface-sunken is
authored and free to sit darker than raised (goingson’s does). Naming
only the well left the recessed-with-no-edge surface unsayable, which is
what an unchosen tab is: it recedes so the chosen one can come forward,
and it carries no bevel of its own.
Added 0.3.0, from goingson’s tab strip, which hand-writes exactly this and could not delete the line because no member described it.