Make Color optional instead of Default

This commit is contained in:
Héctor Ramón Jiménez 2019-08-26 04:07:52 +02:00
parent 8879ccb5f5
commit ee2d40d77f
4 changed files with 15 additions and 24 deletions

View file

@ -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,
);
}
}