summaryrefslogtreecommitdiffstats
path: root/examples/custom_quad
diff options
context:
space:
mode:
authorLibravatar Richard Custodio <richardcustodio@pm.me>2024-03-18 17:08:56 -0300
committerLibravatar Richard Custodio <richardcustodio@pm.me>2024-03-18 17:08:56 -0300
commitbf9bbf4a3edf22f21c79901999cc104cb29fccce (patch)
tree2a2b041471940c0fc1809e3db677a0a53758181c /examples/custom_quad
parent6146382676a7bff4764e86e99d0d053f5fbbc045 (diff)
downloadiced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.gz
iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.bz2
iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.zip
refactor: replace `text(format!(` with `text` macro
Diffstat (limited to 'examples/custom_quad')
-rw-r--r--examples/custom_quad/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/custom_quad/src/main.rs b/examples/custom_quad/src/main.rs
index c093e240..d8aac1d0 100644
--- a/examples/custom_quad/src/main.rs
+++ b/examples/custom_quad/src/main.rs
@@ -165,7 +165,7 @@ impl Example {
self.border_width,
self.shadow
),
- text(format!("Radius: {tl:.2}/{tr:.2}/{br:.2}/{bl:.2}")),
+ text!("Radius: {tl:.2}/{tr:.2}/{br:.2}/{bl:.2}"),
slider(1.0..=100.0, tl, Message::RadiusTopLeftChanged).step(0.01),
slider(1.0..=100.0, tr, Message::RadiusTopRightChanged).step(0.01),
slider(1.0..=100.0, br, Message::RadiusBottomRightChanged)
@@ -174,7 +174,7 @@ impl Example {
.step(0.01),
slider(1.0..=10.0, self.border_width, Message::BorderWidthChanged)
.step(0.01),
- text(format!("Shadow: {sx:.2}x{sy:.2}, {sr:.2}")),
+ text!("Shadow: {sx:.2}x{sy:.2}, {sr:.2}"),
slider(-100.0..=100.0, sx, Message::ShadowXOffsetChanged)
.step(0.01),
slider(-100.0..=100.0, sy, Message::ShadowYOffsetChanged)