perf(render): optimize text rendering & feat(render): add border support

This commit is contained in:
SGavrl committed 2026-07-02 19:38:00 +00:00
1 parent dec56fa42f
commit 6d33783ddf
6 files changed
+118 -52

No files matched your search

+4
View File
@@ -65,6 +65,10 @@ pub struct LayoutStyle {
pub border: Edges,
/// RGBA for the paint step. Parsed always (cheap), used only with `paint`.
pub background_color: Option<[u8; 4]>,
/// Foreground (text) color for the paint step.
pub color: Option<[u8; 4]>,
/// Border color for the paint step.
pub border_color: Option<[u8; 4]>,
}
/// A node in the input layout tree. `text` is carried for the paint phase; it