Repository navigation
Theme updates fixes - #3715
Merged
Merged
Theme updates fixes#3715
Conversation
…ource values This change will ensure newly-applied setters after a theme changes will have the correct value, but more is needed to update values at theme change for currently-applied visual states.
This ensures that DPs on animations inside visual states are updated accordingly after theme changes. (This doesn't fix the case where the animation is in effect at the time the theme changes, more work would be needed to handle this.)
Setting FrameworkElement.RequestedTheme will apply the nominated RequestedTheme to the entire application. This does not allow setting a different RequestedTheme for individual pages or controls, but does support the use case of overriding the system theme while the application is running.
davidjohnoliver
requested review from
a team,
MartinZikmund,
MatFillion and
jeromelaban
August 4, 2020 17:59
davidjohnoliver
force-pushed
the
dev/djo/theme-updates-fix
branch
from
August 4, 2020 18:06
1bb0512 to
b0958ff
Compare
Aligns with UWP, fixes bug where XamlControlsResources can't be assigned directly to App.Resources in Xaml.
MatFillion
approved these changes
Aug 4, 2020
agneszitte
approved these changes
Aug 4, 2020
jeromelaban
reviewed
Aug 4, 2020
|
|
||
| public static readonly DependencyProperty MyTagProperty = | ||
| DependencyProperty.Register("MyTag", typeof(string), typeof(MyExtControl), new FrameworkPropertyMetadata("Default")); | ||
| DependencyProperty.Register("MyTag", typeof(string), typeof(MyExtControl), new PropertyMetadata("Default")); |
Contributor
Author
There was a problem hiding this comment.
doesn't compile on UWP.
Note all these replacements are in Uno.UI.Tests, not Uno.UI itself
Contributor
|
The build 18271 found UI Test snapshots differences: Details
|
jeromelaban
approved these changes
Aug 5, 2020
Member
|
@davidjohnoliver there's an odd change in the screenshots: |
Member
|
Looks like it's caused by the comparison being from an older version which did not have the Fluent style checkbox. |
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): fixes #3388, fixes #3644
FrameworkElement.RequestedTheme(modifies entire app theme)PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Internal Issue (If applicable):