summaryrefslogtreecommitdiffstats
path: root/examples/pure/tour/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pure/tour/src')
-rw-r--r--examples/pure/tour/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pure/tour/src/main.rs b/examples/pure/tour/src/main.rs
index 700e4216..477a1ec7 100644
--- a/examples/pure/tour/src/main.rs
+++ b/examples/pure/tour/src/main.rs
@@ -433,7 +433,7 @@ impl<'a> Step {
.padding(20)
.spacing(20)
.push("And its color:")
- .push(text(format!("{:?}", color)).color(color))
+ .push(text(format!("{:?}", color)).style(color))
.push(color_sliders);
Self::container("Text")
@@ -576,7 +576,7 @@ impl<'a> Step {
.push(if cfg!(target_arch = "wasm32") {
Element::new(
text("Not available on web yet!")
- .color([0.7, 0.7, 0.7])
+ .style(Color::from([0.7, 0.7, 0.7]))
.horizontal_alignment(alignment::Horizontal::Center),
)
} else {