summaryrefslogtreecommitdiffstats
path: root/examples/lazy
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-04 19:31:26 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-04 19:32:13 +0100
commit4130ae4be95ce850263fbc55f490b68a95361d58 (patch)
tree25b1acc723e217e5890e20aa8e796db0f35be231 /examples/lazy
parentce309db37b8eb9860ae1f1be1710fb39e7a9edea (diff)
downloadiced-4130ae4be95ce850263fbc55f490b68a95361d58.tar.gz
iced-4130ae4be95ce850263fbc55f490b68a95361d58.tar.bz2
iced-4130ae4be95ce850263fbc55f490b68a95361d58.zip
Simplify theming for `Text` widget
Diffstat (limited to 'examples/lazy')
-rw-r--r--examples/lazy/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/lazy/src/main.rs b/examples/lazy/src/main.rs
index 9d8c0e35..37b5d52c 100644
--- a/examples/lazy/src/main.rs
+++ b/examples/lazy/src/main.rs
@@ -184,8 +184,7 @@ impl Sandbox for App {
.style(theme::Button::Destructive);
row![
- text(&item.name)
- .style(theme::Text::Color(item.color.into())),
+ text(&item.name).color(item.color),
horizontal_space(),
pick_list(Color::ALL, Some(item.color), move |color| {
Message::ItemColorChanged(item.clone(), color)