Allow finding which ranges were clicked on an InteractiveText

This commit is contained in:
Antonio Scandurra 2023-11-23 18:08:49 +01:00
parent 2cc1df9053
commit 56d043f671
4 changed files with 155 additions and 22 deletions

View file

@ -150,7 +150,7 @@ impl RenderOnce for HighlightedLabel {
LabelSize::Default => this.text_ui(),
LabelSize::Small => this.text_ui_sm(),
})
.child(StyledText::new(self.label, runs))
.child(StyledText::new(self.label).with_runs(runs))
}
}