Skip to main content

Module brand

Module brand 

Source
Expand description

Brand-mark painters — the Khora “diamond” shape and its containing pills.

The diamond itself is defined once in khora_tool_ui::widgets; the helpers here adapt it to the editor’s (cx, cy, half_extent) convention and add the editor-only outline + brand-pill composite.

Functions§

paint_brand_pill
Paints the editor’s branded “pill” (rounded 999 background containing a diamond, the engine name, a separator and the active project name).
paint_diamond_filled
Paints a filled 4-point diamond centred at (cx, cy) with half-extent size. Adapter over [khora_tool_ui::widgets::diamond] (whose size is the full width), so the geometry is defined in exactly one place.
paint_diamond_outline
Paints a 4-point diamond (rotated square) outline centered at (cx, cy).