From ee2d40d77f6ac3a7f6e72163d484f2801e4922fe Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 26 Aug 2019 04:07:52 +0200 Subject: Make `Color` optional instead of `Default` --- examples/ggez/renderer/text.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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 for Renderer<'_> { bounds: iced::Rectangle, content: &str, size: f32, - color: Color, + color: Option, horizontal_alignment: text::HorizontalAlignment, _vertical_alignment: text::VerticalAlignment, ) { @@ -101,7 +101,7 @@ impl text::Renderer for Renderer<'_> { x: bounds.x, y: bounds.y, }, - Some(color), + color, ); } } -- cgit