summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-08-26 04:07:52 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-08-26 04:07:52 +0200
commitee2d40d77f6ac3a7f6e72163d484f2801e4922fe (patch)
treea47cc74aee303df0f4a1a363af364464fb9fd979 /examples
parent8879ccb5f502e2a8ec449486f718e8bd9b2f7a0a (diff)
downloadiced-ee2d40d77f6ac3a7f6e72163d484f2801e4922fe.tar.gz
iced-ee2d40d77f6ac3a7f6e72163d484f2801e4922fe.tar.bz2
iced-ee2d40d77f6ac3a7f6e72163d484f2801e4922fe.zip
Make `Color` optional instead of `Default`
Diffstat (limited to 'examples')
-rw-r--r--examples/ggez/renderer/text.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ggez/renderer/text.rs b/examples/ggez/renderer/text.rs
index bfdedf74..db393873 100644
--- a/examples/ggez/renderer/text.rs
+++ b/examples/ggez/renderer/text.rs
@@ -72,7 +72,7 @@ impl text::Renderer<Color> for Renderer<'_> {
bounds: iced::Rectangle<f32>,
content: &str,
size: f32,
- color: Color,
+ color: Option<Color>,
horizontal_alignment: text::HorizontalAlignment,
_vertical_alignment: text::VerticalAlignment,
) {
@@ -101,7 +101,7 @@ impl text::Renderer<Color> for Renderer<'_> {
x: bounds.x,
y: bounds.y,
},
- Some(color),
+ color,
);
}
}