[Android] ToolbarItem Icon Color
Issues Fixed
Fixes https://github.com/dotnet/maui/issues/24676
| Before | After |
|---|---|
Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.
/rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
/rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
Sorry, the build is failing:
D:\a\_work\1\s\src\Compatibility\Core\src\Android\AppCompat\NavigationPageRenderer.cs(915,112): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [D:\a\_work\1\s\src\Compatibility\Core\src\Compatibility.csproj::TargetFramework=net9.0-android35.0] 9443 Warning(s) 1 Error(s)Let me know if need help with something.
Yes, can you help me with this one? I don't know how to run the Compatibility project so that I know where the errors are.
Sorry, the build is failing:
D:\a\_work\1\s\src\Compatibility\Core\src\Android\AppCompat\NavigationPageRenderer.cs(915,112): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [D:\a\_work\1\s\src\Compatibility\Core\src\Compatibility.csproj::TargetFramework=net9.0-android35.0] 9443 Warning(s) 1 Error(s)Let me know if need help with something.
Yes, can you help me with this one? I don't know how to run the Compatibility project so that I know where the errors are.
Sure, fixed.
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
@kubaflo this seems to end up using the same color as the 'title' on android.
In the linked issue they are trying to get the color to be the Shell.ForegroundColor... I'm not sure if this is exactly correct, but it seems like there's no way otherwise to specify the icon color to differ from the title / text color...
Thoughts? /cc @PureWeen
@Redth thanks for noticing! You're right! It should color the icon based on the ForegroundColor as opposed to TitleColor
Fixed :)
/azp run
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
Does the WinUI screenshot on this PR indicate an additional bug? Since the icon isn't showing up?
It looks like, but I can't fix it
/rebase
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
Does the WinUI screenshot on this PR indicate an additional bug? Since the icon isn't showing up?
It looks like, but I can't fix it
Can you log a bug?
I am not one for asking people to make PRs bigger, but this is so much overlap with #24985 that I wonder if it is best. We are touching the same test app, tests and images. The actual fix is small enough that it might be worth merging the two.
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
Hello guys, thanks for looking into this. :) We also have the same issue, any idea on when we can expect this to be released?