-
Notifications
You must be signed in to change notification settings - Fork 750
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
fix: Apply icon color correctly inside native AppBarButton #6844
Conversation
8d53cbb
to
3c9b281
Compare
Don't mind the build errors, it looks like a nuget fluke. It's important to create a ui test for that one, though. You can create a solid colored square, and poke at the pixels to determine if the change was done properly. |
de5b472
to
d403584
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
...lesApp.UITests/Windows_UI_Xaml_Controls/CommandBarTests/UnoSamples_Tests.NativeCommandBar.cs
Show resolved
Hide resolved
@MartinZikmund Can you re-run the failing tests? (I don't have permissions to do so) |
The UI test did not work it seems: For wasm it's expected as it's a native command bar test, which may not apply, but for iOS, the test should be working though. Looking at the screenshots, the result does not seem to be correct but this is expected as the XAML is supposed to be running on Android only: Line 53 in cf14a75
You'll certainly need to create a new sample XAML file to test your scenario all available platforms. |
2dab12d
to
114cbb8
Compare
@jeromelaban This doesn't seem to be working on iOS. I don't have an iPhone or a Mac to try figuring out what's happening. Can we skip the test for iOS for now and open a new issue tracking that? |
You'll need to exclude this test for WebAssembly (the CommandBar is not set for this platform in the test). As for iOS, you can troubleshoot by looking at the screenshots there: https://dev.azure.com/uno-platform/Uno%20Platform/_TestManagement/Runs?runId=1564386&_a=resultSummary&resultId=100000 |
4469813
to
7781fdc
Compare
Yeah I saw the screenshot in CI. For iOS, the icon doesn't seem to appear at all. Hard to investigate without a real device to debug. I reverted the iOS change temporarily to see if the icon will start appearing, after that let's see how we can move forward. |
@jeromelaban I skipped the test for iOS for now since I'm not sure what's going on (I suspect the test XAML code itself is problematic on iOS, since there is no icon at all). |
GitHub Issue (If applicable): #6732 (Android only is fixed)
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Icons inside AppBarButton don't get their color correctly.
What is the new behavior?
Correctly set their color.
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):