Skip to main content

OPTION_CARD_RADIUS

Constant OPTION_CARD_RADIUS 

Source
pub const OPTION_CARD_RADIUS: f32 = 10.0;
Expand description

Corner radius of the preview frame.

Public because the preview has to round itself to this. gpui content masks are axis-aligned rectangles, so overflow_hidden on the frame clips to its bounding box and not to its corner radius — a preview that paints its own background will square off the corners and cover the frame’s border with it.