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. Reads as ordinary de-emphasised content.
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.