feat: unify theme system #7

Merged
reya merged 14 commits from unify-theme into master 2026-11-16 12:58:35 +00:00
Showing only changes of commit bf8de7f6c4 - Show all commits
+6 -1
View File
@@ -99,7 +99,12 @@ impl RenderOnce for Field {
let id = id.clone();
move || format!("{id}-label")
})
.typeset(TextRole::Headline, cx)
.when(self.description.is_some(), |title| {
title.typeset(TextRole::Headline, cx)
})
.when(self.description.is_none(), |title| {
title.typeset(TextRole::Callout, cx)
})
.child(self.label.clone());
let control = h_flex()