Skip to main content

paint_brand_pill

Function paint_brand_pill 

Source
pub fn paint_brand_pill(
    ui: &mut dyn UiBuilder,
    origin: [f32; 2],
    height: f32,
    engine_name: &str,
    project_name: &str,
    theme: &UiTheme,
) -> f32
Expand description

Paints the editor’s branded “pill” (rounded 999 background containing a diamond, the engine name, a separator and the active project name).

Returns the right edge of the pill in screen-space, so the caller can position the next widget after it.