-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Update to MUX 2.7 #11240
Update to MUX 2.7 #11240
Conversation
zadjii-msft
commented
Sep 15, 2021
- this is the same thing as Upgrade to Microsoft.UI.Xaml 2.6.2 (or equivalent) #10996, but with the fix that caused us to Revert "Upgrade to Microsoft.UI.Xaml 2.6.2 (or equivalent)" #11031
- This includes TabViewItem: Respect Background & Foreground APIs microsoft-ui-xaml#3769, so we had to make some adjustments to how we handle tab colors. It works the same as before.
- Should enable [UX] Adopt Windows 11 Fluent styling for Settings #11231 to be started
- Closes Update to WinUI 2.6 (prerelease) #10508
- Closes The rounded bottom corner on a tab doesn't get colored by the color picker #7133
- Closes Saving the settings.json file creates a shadow on the tab? #8948
- I need to finish letting my 19H1 VM boot to make sure unpackaged still works
This reverts commit d112bd9.
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.
YES! 🎉🎉🎉
@@ -20,7 +20,8 @@ | |||
<ResourceDictionary> | |||
<ResourceDictionary.MergedDictionaries> | |||
<!-- Include the MUX Controls resources --> | |||
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" /> | |||
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" | |||
ControlsResourcesVersion="Version1" /> |
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.
Curious: Why did we have to add the version here?
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.
totally unfounded guess: this opts us out of the win11 styles, until we're ready to actually ingest them. Dustin did it in the original PR
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.
Correct.
Blocking because this explodes on 19H1 @msftbot make sure @DHowett signs off on this |
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.
f
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
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 wish this didn't explode our msixbundle by 10MB, but what can ya do
DESPITE the fact that there's a `Background()` API that we could just call like: ```c++ TabViewItem().Background(deselectedTabBrush); ``` We actually can't, because it will make the part of the tab that doesn't contain the text totally transparent to hit tests. So we actually _do_ still need to set `TabViewItemHeaderBackground` manually. * Regressed in #11240 * Root cause up in microsoft/microsoft-ui-xaml#3769 * [x] closes #11294
DESPITE the fact that there's a `Background()` API that we could just call like: ```c++ TabViewItem().Background(deselectedTabBrush); ``` We actually can't, because it will make the part of the tab that doesn't contain the text totally transparent to hit tests. So we actually _do_ still need to set `TabViewItemHeaderBackground` manually. * Regressed in #11240 * Root cause up in microsoft/microsoft-ui-xaml#3769 * [x] closes #11294
I've had a hard time with the tab colors this week. Turns out that setting the background to nullptr will make the tabviewitem invisible to hit tests. `Transparent`, on the other hand, is totally valid, and the expected default. Tabs as of this commit: ![tab-color-fix-3](https://user-images.githubusercontent.com/18356694/135915272-ff90b28b-f260-493e-bf0b-3450b4702dce.gif) ## PR Checklist * [x] Closes #11382 * [x] I work here This low-key reverts a bit of #11369, which fixed #11294, which regressed in #11240
🎉 Handy links: |