-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
Hello,
After 9.0.90 MAUI update, this fix changes the image RenderMode from (I think) automatic to alwaysOriginal.
While this is great to show detailed images correctly, in cases (like mine) where there's a single color .svg, the navigation bar tint no longer affects the toolbar items color.
In my case specifically, implementing dark/light mode, setting the BarTextColor would also set the same color for the ToolbarItems (and hamburger icon). After this update, this behavior is no longer present.
I think the ToolbarItem should have a new property ForceColor which will set the imageRenderMode to AlwaysOriginal, keeping the previous behavior existing.
Moreover, a TintColor could be added to specify a TintColor for the image.
Steps to Reproduce
- Create a new MAUI project
- Add a navigation page
- Add a toolbaritem with the IconImageSource to a FileImageSource
- Change the BarTextColor
- Notice the iconImageSource no longer changes the color based on the BarTextColor
Link to public reproduction project repository
No response
Version with bug
9.0.90 SR9
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.82 SR8.2
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
Adding a custom PageHandler that changes the image RenderMode on page load to AlwaysTemplate for the ToolbarItems