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
colorwith its alpha channel replaced. See [khora_tool_ui::widgets::with_alpha].