-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Fix for the FontImageSource color is not applied properly to the Bottom Tab Icon #29317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hey there @@Ahamed-Ali! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes an issue on Android where the FontImageSource color was not applied properly to bottom tab icons in TabbedPage by using the SetIconTintList method for individual tab icons.
- Updated TabbedPageManager to apply per-item icon tinting based on the FontImageSource color.
- Added new test cases in both HostApp and Shared.Tests to validate static and dynamic scenarios.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29109.cs | Added UITests for validating the FontImageSource color fix in bottom tab icons. |
| src/Controls/tests/TestCases.HostApp/Issues/Issue29109.cs | Updated sample app with tabs that demonstrate the dynamic update of the FontImageSource color. |
| src/Controls/src/Core/Platform/Android/TabbedPageManager.cs | Modified icon tint handling to support per-item customization using SetIconTintList. |
Comments suppressed due to low confidence (1)
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29109.cs:28
- [nitpick] Consider enhancing the dynamic FontImageSource color test by asserting the actual tab icon color programmatically in addition to screenshot verification to improve test precision.
App.Tap("Button");
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…o the Bottom Tab Icon (#29317) * Fixed the FontImageSource Icon color issues on the BottomNavigationView Tabs * Committed the test sample and case * Added comment over the fix * Remove unnecessary space
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Root Cause of the issue
FontImageSource.Coloris not applied to the bottom tab icon in a TabbedPage.Description of Change
Additionally, the fix covers dynamic scenarios as well.
Issues Fixed
Fixes #29109
Tested the behaviour in the following platforms
Screenshot