Merged
Conversation
https://stackoverflow.com/questions/64694722/changing-themeresources-dynamically-in-uwp That post looked SUPER promising. Problem is though, I CANNOT for the life of me get that to work. Like, I can't get anything to `{Binding Brush, Mode=TwoWay, Source={StaticResource TerminalBackground}}` to the `TerminalBackground` thing I made there. I thought that was so clever. I wanted an easy way to just change the value of a resource and have it update the Titlebar, but since the Titlebar isn't a child of the TerminalPage, and this binding thing didn't work, I think I'm at a dead end.
…dev/migrie/fhl/theming-2022-prototype
…ses are NOT optional
…to be sub-properties of the Theme
…f/702-link-tab-to-terminal
Member
Author
…f/702-link-tab-to-terminal
…f/3335-tab-close-btn
…-close-btn # Conflicts: # src/cascadia/LocalTests_SettingsModel/ThemeTests.cpp # src/cascadia/TerminalApp/AppLogic.cpp # src/cascadia/TerminalApp/AppLogic.h # src/cascadia/TerminalApp/TerminalPage.cpp # src/cascadia/TerminalApp/TerminalPage.h # src/cascadia/TerminalSettingsEditor/GlobalAppearance.cpp # src/cascadia/TerminalSettingsEditor/GlobalAppearance.h # src/cascadia/TerminalSettingsEditor/GlobalAppearance.idl # src/cascadia/TerminalSettingsEditor/GlobalAppearance.xaml # src/cascadia/TerminalSettingsModel/CascadiaSettingsSerialization.cpp # src/cascadia/TerminalSettingsModel/MTSMSettings.h # src/cascadia/TerminalSettingsModel/TerminalSettingsSerializationHelpers.h # src/cascadia/TerminalSettingsModel/Theme.cpp # src/cascadia/TerminalSettingsModel/Theme.h # src/cascadia/TerminalSettingsModel/Theme.idl # src/cascadia/WindowsTerminal/AppHost.cpp
Member
Author
carlos-zamora
approved these changes
Jul 27, 2022
Comment on lines
+2732
to
+2734
| // This is basically the same as _updateTabCloseButton, but with some | ||
| // code moved around to better facilitate updating every tab view item | ||
| // at once |
Member
There was a problem hiding this comment.
Personally, I'd rather prioritize having the code de-duplicated in case we need to make a bugfix or any code changes down the road. But that's just my 2 cents. Not gonna block over it.
lhecker
approved these changes
Jul 30, 2022
|
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 (
|
|
🎉 Handy links: |
This pull request was closed.
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.


Summary of the Pull Request
Adds support for the
tab.showCloseButtonproperty to themes. This accepts three values:"always"(default): The close button acts like it does today."hover": The close button is always visible on the active tab. On inactive tabs, the close button only appears on mouse over."never": The close button is never visible. You can't close the tab with middle-click, but you can still use keyboard shortcuts to close the tab.References
tab.backgroundto themes #13178PR Checklist
Detailed Description of the Pull Request / Additional comments
See the following two properties in WInUI that we're leveraging here.
TabViewCloseButtonOverlayMode.OnPointerOverTabViewItem.IsClosableOne is a tabview-level property, the other is a per-tab-item property, hence why this code is a little wacky.
Validation Steps Performed
gifs below