Open chrisg32 opened 1 month ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Fix #15612 sets the overflow icon color based on Shell.ForegroundColor
. Since this isn't applicable if you aren't using shell, it should perhaps be based on NavigationPage.IconColor
?
This issue has been verified using Visual Studio 17.11.0 Preview 3 (8.0.70 & 8.0.61). Can repro it.
Fix #15612 sets the overflow icon color based on
Shell.ForegroundColor
. Since this isn't applicable if you aren't using shell, it should perhaps be based onNavigationPage.IconColor
?
Has anyone a good workaround when you are not using shell?
Update: I just found a way to fix this: https://github.com/dotnet/maui/issues/8756#issuecomment-1242370867
Description
If you are using Shell you can change the toolbar overflow icon on Android to match the Shell foreground color. This feature seems to be fixed with #15612 but that fix only applies to Shell. If you are not using Shell and are using a NavigationPage there does not seem to be a way to apply the color.
Shell (working):
NavigationPage (not working):
Steps to Reproduce
1) Add a toolbar to a MAUI page with overflow (secondary) items.
2) Change the colors of the toolbar icons and text.
3) If you are using Shell, the overflow icon will change color.
if you are not using Shell, the overflow icon will not change color.
(If you are using the reproduction repository you can switch between Shell and no-Shell in App.xaml.cs.
Link to public reproduction project repository
https://github.com/chrisg32/MAUI-Bug-Toolbar-Overflow-Icon-Color
Version with bug
8.0.70 SR7
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 13 - API 33
Did you find any workaround?
We have not found a work around to this issue. Using shell would require an entire refactor of our application.
Relevant log output
No response