pub enum Depth {
Flat,
Raised,
Well,
Sunken,
}Expand description
How a region sits relative to the surface behind it.
Fill and bevel are named together because naming them apart is what let
them disagree. Every consumer measured had at least one region carrying a
raised bevel over a recessed fill: audiofiles fixed it in raised_frame
and recorded the bug in its doc comment, and Balanced Breakfast still had
twelve of them a year later. A single name for the pair makes that
unrepresentable.
Variants§
Flat
Level with its surroundings. No edge.
Raised
A card laid on the panel it sits in.
Well
A hole in the panel, with content down inside it. For anything the user looks into: a table body, a tag tree, a text field.
Sunken
Set back from what it sits on, by colour alone. No edge.
The one member carrying a fill without a bevel, so a renderer cannot
assume the two arrive together. That is deliberate and it is still the
pairing rule: both halves come off the same Depth, so they cannot
disagree, and here one half is legitimately absent.
Distinct from Depth::Flat, which has no fill either and inherits.
Recessed and level-with are different claims, and only one of them
needs a colour.