Skip to content

Conversation

@Ahamed-Ali
Copy link
Contributor

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

  • On Android, setting the FontImageSource.Color is not applied to the bottom tab icon in a TabbedPage.

Description of Change

  • I resolved the bottom tab FontImageSource color issue by using the SetIconTintList method with the appropriate colors.
    Additionally, the fix covers dynamic scenarios as well.

Issues Fixed

Fixes #29109

Tested the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Screenshot

Before Issue Fix After Issue Fix

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 5, 2025
@dotnet-policy-service
Copy link
Contributor

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.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label May 5, 2025
@Ahamed-Ali Ahamed-Ali marked this pull request as ready for review May 5, 2025 13:03
Copilot AI review requested due to automatic review settings May 5, 2025 13:03
@Ahamed-Ali Ahamed-Ali requested a review from a team as a code owner May 5, 2025 13:03
@Ahamed-Ali Ahamed-Ali requested review from mattleibow and rmarinho May 5, 2025 13:03
@sheiksyedm sheiksyedm added area-controls-tabbedpage TabbedPage partner/android Issues for the Android SDK labels May 5, 2025
Copy link
Contributor

Copilot AI left a 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");

@PureWeen PureWeen added this to the .NET 9 SR8 milestone May 5, 2025
@PureWeen PureWeen moved this from Todo to Ready To Review in MAUI SDK Ongoing May 5, 2025
@PureWeen PureWeen added the p/0 Current heighest priority issues that we are targeting for a release. label May 5, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@github-project-automation github-project-automation bot moved this from Ready To Review to Approved in MAUI SDK Ongoing May 23, 2025
@PureWeen PureWeen changed the base branch from main to inflight/current May 23, 2025 08:27
@PureWeen PureWeen changed the base branch from inflight/current to inflight/candidate May 23, 2025 08:27
@PureWeen PureWeen merged commit ca2c248 into dotnet:inflight/candidate May 23, 2025
77 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in MAUI SDK Ongoing May 23, 2025
github-actions bot pushed a commit that referenced this pull request May 30, 2025
…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
@github-actions github-actions bot locked and limited conversation to collaborators Jun 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-tabbedpage TabbedPage community ✨ Community Contribution p/0 Current heighest priority issues that we are targeting for a release. partner/android Issues for the Android SDK partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Android] Unable to set unselected iconImageSource color when toolbar placement is set to bottom

4 participants