Skip to main content

Module paint

Module paint 

Source
Expand description

Low-level painting helpers used by other widgets.

Colour maths and the gradient live once in khora_tool_ui::widgets; the helpers here re-expose them under the editor’s historical names, plus the icon / text conveniences that are just thin wrappers over the UiBuilder trait (no logic to share).

Functions§

paint_hairline_h
1-pixel horizontal hairline.
paint_icon
Paints a single Lucide icon glyph at the given position. The icon is rendered with the bundled "icons" font family — falls back to a single dot if that family isn’t installed.
paint_text_size
Paints proportional text at the given position with explicit size + color.
paint_vertical_gradient
Paints a vertical gradient. Adapter over [khora_tool_ui::widgets::vertical_gradient].
with_alpha
Returns color with its alpha channel replaced. See [khora_tool_ui::widgets::with_alpha].