Add Auto strategy to text::Shaping

This commit is contained in:
Héctor Ramón Jiménez 2025-08-30 18:15:12 +02:00
parent d31a7b6ae8
commit bc7d64987e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
8 changed files with 47 additions and 11 deletions

View file

@ -94,14 +94,14 @@ impl Layout {
let controls = row([
(!self.example.is_first()).then_some(
button(text("← Previous").shaping(text::Shaping::Advanced))
button(text("← Previous"))
.padding([5, 10])
.on_press(Message::Previous)
.into(),
),
Some(horizontal_space().into()),
(!self.example.is_last()).then_some(
button(text("Next →").shaping(text::Shaping::Advanced))
button(text("Next →"))
.padding([5, 10])
.on_press(Message::Next)
.into(),
@ -313,7 +313,7 @@ fn quotes<'a>() -> Element<'a, Message> {
"This is another reply",
),
horizontal_rule(1),
text("A separator ↑").shaping(text::Shaping::Advanced),
text("A separator ↑"),
]
.width(Shrink)
.spacing(10)

View file

@ -1 +1 @@
0650eb2c27c21c5d48e1e00031a52d8471d8a3b4e827ad502c4628914f5c1c13
129523830df064908cfa911214ba61dadc31d8975425ba3efaae69da9514a3d0