Repository navigation
fix: [macOS] follow system colors changes - #8630
Merged
MartinZikmund merged 3 commits intoJul 13, 2022
Merged
MartinZikmund merged 3 commits into
MartinZikmund merged 3 commits into
Conversation
ghost
self-requested a review
April 26, 2022 18:57
Author
|
Just a comment: the test itself is testing only if the UISettings is giving the system colors itself. As there's not a easy way to simulate the system color changes. |
jeromelaban
reviewed
Apr 27, 2022
jeromelaban
left a comment
Member
There was a problem hiding this comment.
This is looking good! The test is indeed not automatable for now, so validating that we're getting the same values is fine for now.
Author
Member
|
Interesting. It's likely that the Xamarin version we're using on CI is not recent enough to get this property. Let's bump it and see what happens. |
Member
|
This is a very curious error, it even fails on net6: |
jeromelaban
approved these changes
Jun 2, 2022
Author
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Follow user custom colors of macOS. Using UISettings.GetColorValue() method to retry the current system colors. The changes are monitored by UISettings.ColorValuesChanged
Co-authored-by: Jérôme Laban <[email protected]>
Member
|
I've rebased your PR and removed the unnecessary bump in macOS CI version. |
ghost
requested a review
from MartinZikmund
July 4, 2022 14:06
MartinZikmund
approved these changes
Jul 13, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

GitHub Issue (If applicable): closes #6767
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Uno Apps were not able to detect custom color changes made by the user.
What is the new behavior?
Now, the app can detect the custom changes using using UISettings.ColorValuesChanged
and retry the colors by UISettings.GetColorValue().
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Valid to know: AppKit doesn't have all UITypes available on uno. So, some are still hardcoded on SystemResources.xaml.