-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update all relevant WinUI 2.5 revs to 2.6 #4092
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
Conversation
Thanks RosarioPulella for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
Thanks @RosarioPulella, how does it look at first glance? |
It all seems good for a fairly simple change so far. Still investigating if there is anything else that needs to change. |
There are some differences in the look and feels of a few things. It might be worth making a script or tool to open a bunch of set configurations of controls and take simple screen shots. It might not be necessary to run on CI at all, but at least it could make it easy to quickly check for visual issues. For now I am just going to investigate as much as I can on the differences. |
That's a good idea. It's certainly hard to automate visual comparisons (and brittle). But at least having a script to output visuals could be handy. I think ideally just loading our sample pages in the UI test apps could be handy. Some of these things are probably things we should think of for the future of infrastructure as we move forwards, as not sure how easy it is to integrate into what we have currently. Want to at least create an issue to track the screenshot idea? |
Made the issue. Maybe we should have a project or tag for our major plans for changing the WCT from a high level, be it infrastructure or otherwise? |
From going threw the sample app I found a few issues.
|
Thanks @RosarioPulella, I know for TabbedCommandBar there's stuff we should fix anyway, tracked by issue #4085. |
Further issues encountered when testing this WinUI 2.6 build:
|
I think its behaving the same as |
I am starting to think that we might want to simply accept the changes we noticed with the It might be a similar case for the |
I think it's safe to assume the WebView issues are due to this bug in WinUI: microsoft/microsoft-ui-xaml#5299 - I'll follow-up with their team. |
When the In a separate app the button's visuals did not seem to update but I was able to draw on the infinite canvas with the mouse. Edit: In winui 2.6 I noticed that styles were added for some |
@RosarioPulella can you add a new sub-element to our NavigationView with the following resource? Looks like we found an initial work-around. <winui:NavigationView.Resources>
<CornerRadius x:Key="NavigationViewContentGridCornerRadius">0,0,0,0</CornerRadius>
</winui:NavigationView.Resources> Then that should hopefully fix the WebView and Inking issues? |
WebView - fixed |
Awesome, thanks @RosarioPulella! Let's apply that to our app for now so we can move forward until there's a better solution long-term from the platform team. |
Here are some more issues when testing WinUI 2.6:
|
Thanks @XAML-Knight, are the list of pages underneath your initial issues ones with the similar problem or do they each have their own problem unique to that control? If something is wonky on a system control (like ToggleButton) we should just double-check we're not using a custom resource for it, and if not we can file an issue on the WinUI repo to follow-up with after. For instance with AdaptiveGridView checkboxes that'd be this type of issue: microsoft/microsoft-ui-xaml#5392 Otherwise, I think the main things for us to focus on are things that were broken by the update like TileControl, or resources in our own controls that aren't aligned now to the new pattern (like Expander). Of course we need to determine if the new change is aligned to the new pattern or if it's a change we need to put back to how it used to be. Can you work with @RosarioPulella to go through the things we've identified and break out the changes to address amongst the two of you? Then we can make sure we've filed any open issues against the platform team, and chipped at the initial work we have in the Toolkit. Thanks! |
The controls in the bulleted list all had the similar problem. I've reached out to @RosarioPulella to divide & conquer the changes to address. |
My findings so far are. For the I think an important issue to look into is this issue with buttons and icons being miss aligned/miss positioned/ sized improperly in a few controls ( On a lower priority some colors not looking quite right seems to be a bit of an issue too. The big one being the buttons on the |
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.
I think this improved the BaldeView
well enough for now. It seems like perhaps this hints at a larger issue for rebasing all the controls to use as many WinUI styles of system styles as possible.
<Setter Property="TitleBarBackground" Value="{ThemeResource SystemControlBackgroundChromeMediumLowBrush}" /> | ||
<Setter Property="Background" Value="{ThemeResource SystemControlBackgroundAltHighBrush}" /> | ||
<Setter Property="Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}" /> | ||
<Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" /> |
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.
It seems to look a lot better, on dark and light system themes.
Found it here
https://github.com/microsoft/microsoft-ui-xaml/blob/5e815a2c4bfe2bc019562b01fffbeeb25866acf6/dev/CommonStyles/Common_themeresources_any.xaml#L185
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.
Looks good in Dark theme, Light theme ... a little less so. No telling if/when WinUI will move the goal posts on Light theme.
<Setter Property="MinHeight" Value="{ThemeResource GridViewItemMinHeight}" /> | ||
<Setter Property="BorderBrush" Value="{ThemeResource SystemControlForegroundChromeHighBrush}" /> | ||
<Setter Property="BorderBrush" Value="{ThemeResource CardStrokeColorDefaultBrush}" /> | ||
<Setter Property="BorderThickness" Value="1" /> |
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.
This seemed to go well with it.
For
|
What do you think about the changes I made though? |
For the |
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.
It seems fallowing some of the styles from WinUI fixed the issue and kept the expander reflecting off the user's system accent color.
On me to review, but we also need to know status of microsoft/microsoft-ui-xaml#5468 for shipping 7.1 |
Under WinUI 2.6 the flip view has a brackground. Removing it for this sample.
Instead of constrining the buttons size which broke when the style made content in the button take more space threw more padding. Now we have the buttons stretch to the height of the bar.
Set padding for close button to isolate from winui changes.
BladeViewItem use CardBackgroundFillColorDefaultBrush for background. use CardStrokeColorDefaultBrush for BorderBrush.
@RosarioPulella I think for now we can leave our updates, and do another pass in a different PR to try and adjust/update styles more. At least we're functional. We can evaluate which controls make the most sense to focus on updating first and split those out individually among the team. I'm going to merge this for now so we can move forward. |
Fixes #4085
Update to winui 2.6
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Every project that uses winui uses version 2.5.0
What is the new behavior?
Every project that uses winui uses version 2.6.0
PR Checklist
Please check if your PR fulfills the following requirements:
Other information