From bc9b545e5f7e1cced285c305e4482db36552fbd7 Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 16 Nov 2026 13:27:45 +0000 Subject: [PATCH] design-lint: props: derive the setters of ui-patterns components (#[prop]) and drop the hand setters --- .../src/patterns/form_dialogs/dialog.rs | 77 ++++++------------- .../src/patterns/form_dialogs/report.rs | 10 +-- 2 files changed, 25 insertions(+), 62 deletions(-) diff --git a/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs b/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs index c2f6ebe7a..63c8e2cee 100644 --- a/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs +++ b/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs @@ -225,7 +225,8 @@ pub struct ParamDialog<'a> { /// The patterns the dialog's [`ParamKind::Pattern`] rows offer. #[prop] patterns: Cow<'a, [PresetRow]>, - /// A muted line at the footer's start edge (JPEG Options' size estimate). + /// A muted line at the footer's start edge, left of the buttons (a file size estimate, say). + #[prop(into)] footer_note: Option