Skip to main content

dialog_chrome

Function dialog_chrome 

Source
pub fn dialog_chrome(ctx: &Context) -> Vec2
Expand description

What a dialog’s frame takes around its content, both sides summed: the kit dialog’s padding (padding-x, padding-y) and the room it keeps for its widest border of any state, on whole physical pixels (Component::border_room, what Component::show keeps). A dialog’s outer size is its content’s plus this; every modal is sized with it.