Skip to main content

panel_ground

Function panel_ground 

pub fn panel_ground(theme: &Theme) -> AlphaColor<Srgb>
Expand description

The opaque colour a chrome surface is built from, guaranteed to register against both the desktop and the window card (Bar/Panel share one material, and a Panel floats over app content).

surfaces.overlay is used verbatim where it separates, but not always: on high-contrast it’s identical to the ground, and on light both it and window_card are #ffffff — painted verbatim there, a panel is the desktop with a faint line around it. Where it’s swallowed, the ground is walked away from it (same luminance reasoning as Colors::hairline_on) until it clears both; PANEL_BORDER_ALPHA is the edge half of the same fix.