From ad0ab4b9c3eafd46b1df48498b3af1d8d4970f48 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sun, 22 Nov 2026 08:18:29 +0700 Subject: [PATCH] ui-widgets: the long chord-button story gives its long text as the label, not as painted text painted is the label as the face shows it (with its access letter) and the label stays the accessible name, so a cut painted text that is other words was in no name. --- crates/ui-widgets/src/buttons/stories.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-widgets/src/buttons/stories.rs b/crates/ui-widgets/src/buttons/stories.rs index 313b1100c..29425c73d 100644 --- a/crates/ui-widgets/src/buttons/stories.rs +++ b/crates/ui-widgets/src/buttons/stories.rs @@ -406,10 +406,10 @@ fn button_chord(ui: &mut Ui, _: &mut StoryData) -> StoryOutput { Button::command(EditCommands::Copy).chord(ButtonChord::Trailing).show(ui).into() } -/// A long painted label with the chord: the chord shows while the whole label fits beside it. +/// A long label with the chord: the chord shows while the whole label fits beside it. #[story(Button<'static>, covers = [], drive = Drive::Never, group = "Variants", title = "Chord, long text")] fn button_chord_long_text(ui: &mut Ui, _: &mut StoryData) -> StoryOutput { - Button::command(EditCommands::Copy).chord(ButtonChord::Trailing).painted("Copy the selected objects to the clipboard").show(ui).into() + Button::command(EditCommands::Copy).chord(ButtonChord::Trailing).label("Copy the selected objects to the clipboard").show(ui).into() } /// A room too short for label and chord together: the chord is dropped and the label stays whole.