use theme::{ControlSize, Sizing as _, Theme};
let pad = 4.0;
div()
.p(px(pad))
.rounded(px(Theme::surface_radius()))
.child(div().rounded(px(Theme::inset_radius(Theme::surface_radius(), pad))))
div().h(px(Theme::HEADER_HEIGHT)).gap(px(Theme::SPACE))
div().control_size(ControlSize::Small)- Radii are functions of
Brand::radius, read process-wide. Call them where you paint; a radius stored in aconstmisses a brand change. - A rounded container does not pass its corner to its children; a child inset by
padtakesinset_radius(outer, pad). ui::stack::rowandcolumnalready carryTheme::SPACE.