pub enum SurfaceRole {
SectionCard,
Window,
Scrim,
}Expand description
Default navigation sidebar width (split presentation) until the pane reports its size.
Semantic container surfaces (see ContainerProps::role): each backend maps a role to its
own theme-adaptive material so the fill tracks light/dark mode without app code.
Variants§
SectionCard
A form section card, the platform’s grouped-content background: AppKit quaternary
system fill, libadwaita .card, Qt palette(alternate-base), UIKit tertiary system
fill, Material surface-container, XAML card background brush.
Window
The window’s own background, the surface a page sits on: what an opaque cover paints by default, and the card of a composed modal sheet (docs/cover.md “Modal sheet”).
Scrim
The layer between a composed modal sheet and the page under it, which says the page is
out of reach until the sheet goes. The container’s background is the plain dimming a
backend draws when it has no material of its own; the web frosts the page instead.
Trait Implementations§
Source§impl Clone for SurfaceRole
impl Clone for SurfaceRole
Source§fn clone(&self) -> SurfaceRole
fn clone(&self) -> SurfaceRole
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more