mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
fixup! Replace ButtonImage with Image
Apply default tint to icons unless specified as untinted
This commit is contained in:
parent
e841024025
commit
a0ad4bd762
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user