[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). |
| (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.
Could include an UITest and validate the colors with the VerifyScreenshot method?
There was a problem hiding this comment.
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.
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.
|
/rebase |
3e27b5e to
e8c9d75
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jsuarezruiz
left a comment
There was a problem hiding this comment.
The fix looks good, but, could you include the test Issue26662 from https://github.com/dotnet/maui/pull/26757/files here?
8fa0858
The test sample and the test case have been included. Could you please check? @jfversluis / @PureWeen |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/rebase |
048d2b2 to
03822a0
Compare
|
Azure Pipelines successfully started running 1 pipeline(s). |
Root Cause of the issue
Description of Change
Issues Fixed
Fixes #26752
Test Case
Tested the behaviour in the following platforms
Screenshot