pub enum Tone {
Neutral,
Info,
Success,
Warning,
Danger,
}Expand description
What a region is saying, when it is saying something.
The one intent family shared by badges, notices and nothing else. Kept
separate from Fill because a surface is where a thing sits and a tone is
what it means, and the three apps agree on the four statuses:
info_banner / warning_banner in audiofiles, .toast-info /
.toast-success / .toast-error in goingson, .toast.success /
.toast.error in Balanced Breakfast.
The per-tag palette (category-one through category-six) is deliberately
not here. Which colour a particular tag takes is app domain, and both
webview apps already carry it as a data-color attribute.
Variants§
Neutral
No status.
Ordinary content, at full weight. It does not also mean muted: a
badge reads quiet because Token::Badge answers no click, which is
the renderer’s knowledge and not this axis’s. A renderer wanting a
muted badge reaches for Token::interactive itself rather than
expecting Neutral to have muted it.
Info
Something worth knowing and nothing to do about it.
Success
Something finished and it worked.
Warning
Something the user should look at before continuing.
Danger
Something broken, or something about to be destroyed.