git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commita400ce8dfbc26c44fd06731dd7d12fe6b2f1ee97
parent8ba7dcc758
authorLucas Galante <[email protected]>
date2026-06-29 18:11
Introduce (font) type signature in TreeList labels for font properties

 src/widget/container/treelist.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/widget/container/treelist.rs b/src/widget/container/treelist.rs
index aa9ba1c..215ca6a 100644
--- a/src/widget/container/treelist.rs
+++ b/src/widget/container/treelist.rs
@@ -431,6 +431,8 @@ impl Element for TreeList {
                         serde_json::Value::String(s) => {
                             if s.starts_with('#') {
                                 Some("color")
+                            } else if name == "font" || name.ends_with("_font") || name.ends_with(".font") {
+                                Some("font")
                             } else {
                                 None
                             }