-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Windows] Fix for FontImageSource color is not applied to the Tab Icon on the TabbedPage #26888
base: main
Are you sure you want to change the base?
[Windows] Fix for FontImageSource color is not applied to the Tab Icon on the TabbedPage #26888
Conversation
Hey there @Tamilarasan-Paranthaman! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -325,6 +357,7 @@ internal static void MapItemsSource(ITabbedViewHandler handler, TabbedPage view) | |||
(vm, page) => | |||
{ | |||
vm.Icon = page.IconImageSource?.ToIconSource(handler.MauiContext!)?.CreateIconElement(); | |||
vm.IconColor = (page.IconImageSource as FontImageSource)?.Color?.AsPaint()?.ToPlatform(); |
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.
Could include an UITest and validate the colors with the VerifyScreenshot
method?
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.
The test case has already been added to the following PR. We can re-enable it for Windows once the PR has been merged.
PR : #26757
Or Do I need to add the same test case in this PR as well?
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.
Yes, in this PR, remove the #if TEST_FAILS_ON_WINDOWS compilation directive from the FontImageSourceColorShouldApplyOnTabIcon test and commit the snapshot to validate the test.
Root Cause of the issue
Description of Change
Issues Fixed
Fixes #26752
Test Case
Tested the behaviour in the following platforms
Screenshot