fixup! Replace ButtonImage with Image

Apply default tint to icons unless specified as untinted
This commit is contained in:
Michael Kirk 2021-03-18 10:56:55 -07:00 committed by Dustin Carlino
parent e841024025
commit a0ad4bd762

View File

@ -221,9 +221,10 @@ impl<'a, 'c> Image<'a, 'c> {
self.source.as_ref().map(|source| {
let (mut image_batch, image_bounds) = source.load(ctx.prerender);
if let Some(color) = self.color {
image_batch = image_batch.color(color);
}
image_batch = image_batch.color(
self.color
.unwrap_or(RewriteColor::ChangeAll(ctx.style().icon_fg)),
);
match self.dims {
None => {