pub fn content(floating: bool, cx: &App) -> DivExpand description
The element an app’s main view is drawn in.
Floating, it is a card on the window’s chrome, Theme::sidebar_bg,
which its parent paints: half Theme::CONTENT_INSET of margin on every
side, Theme::panel_radius corners, a hairline border and
Theme::content_bg over the chrome. An opaque card casts
theme::content_shadows; under Theme::vibrancy it casts none, since a
shadow shows through a translucent fill. Flat, it is a plain
Theme::window_bg fill with none of those.
The caller sizes it: it is handed back unsized, as a flex row or column item would want it. The parent of floating cards pads itself by the other half of the inset, so a card stands the whole inset off the window’s edge and two cards side by side meet the whole inset apart.