From bf8de7f6c4b01a86d74012cdb952fd2d400749e2 Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Mon, 16 Nov 2026 18:44:40 +0700 Subject: [PATCH] Use normal field labels without descriptions - Keep description-bearing field labels emphasized. - Render plain row labels at the normal callout weight. --- crates/core/src/field.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/core/src/field.rs b/crates/core/src/field.rs index a7c6741..607b768 100644 --- a/crates/core/src/field.rs +++ b/crates/core/src/field.rs @@ -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()