pub struct Surfaces {
pub root: Color,
pub sidebar: Color,
pub card: Color,
pub card_border: Color,
pub row: Color,
pub text: Color,
pub text_dim: Color,
}Expand description
The shades a windowed app layers on top of each other.
Separate from the auth screen’s flat background/surface pair
because the two are drawing different things: a lock screen is one
panel on a wallpaper, a settings window is a sidebar beside cards
beside rows. Both are the same look; only one needs the ramp.
Fields§
§root: ColorThe window’s own background, behind everything else.
The navigation panel down the side.
card: ColorA raised panel grouping related settings.
card_border: ColorThe line around a Self::card, one step lighter so the edge
reads without needing a shadow.
row: ColorAn individual row inside a card, one step lighter again — the step that lets a list read as rows rather than one solid block.
text: ColorPrimary text on any of the surfaces above.
text_dim: ColorDe-emphasised text — hints, secondary labels — on the same
surfaces as Self::text.