fix(widget): allow None for button text color to inherit from container

This commit is contained in:
Michael Aaron Murphy 2023-09-18 08:28:51 +02:00
parent 6acdba28aa
commit b404497e76
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
5 changed files with 15 additions and 28 deletions

View file

@ -306,7 +306,7 @@ where
theme,
&renderer::Style {
icon_color: styling.icon_color.unwrap_or(renderer_style.icon_color),
text_color: styling.text_color,
text_color: styling.text_color.unwrap_or(renderer_style.icon_color),
scale_factor: renderer_style.scale_factor,
},
content_layout,