-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
UI Suggestion: Visually link tab to console view #702
Comments
So I'm currently hacking around with this but I found one issue that most likely makes this kinda hard to implement: The tab bar is not using the acrylic effect (yet). This makes the opacity of the tab (thus the color) not match the rest of the window. But there is hope! They seem to have this on the radar, I found this comment: Here is how I did it (acrylic needs to be off else it looks bad): ghosty141@2cc95d5 |
I believe it's using a XAML Island, but there are other surfaces that can use Acrylic, and I'm sure as WinRT's presentation platform becomes open source in WinUI 3.0 - this will become more possible. But thinking about where the app is heading now, will hopefully drive things forward. |
@mdtauk What I'm saying is that changing the tab color "can" only be done once the tab bar is using the acrylic effect. One big problem is that the tabbar currently gets style according to the theme the user uses. The use of acrylic is done per profile while the tabbar exists only once. So unless the UI gets changed quite a bit, this will probably take a while. |
Yea I get that, but the window itself is a Win32 window, so XAML acrylic brushes are a bit difficult. The app would have to extend into the titlebar area and the window colour would need to be the Host Acrylic matching the RequestedTheme. But yes, matching tab colour to the console is a start, and removing the tab background colour, and ensuring the inactive tabs show up well using ThemeResources |
Funny enough, the code @ghosty141 changed ("how to set a brush maybe?") is code I wrote when testing this exact feature. If you get the actual brush from the background of the terminal control, you can copy the acrylic effect directly into the tab. Use the same acrylic setup as is in Ideally, we'd be using a |
ThemeResources would automatically refresh upon the user setting the theme. Until Win32 gets official support, you'll have to redraw and detect the change |
I think this would be a really cool setting. If someone wanted to to go ahead an implement this, they'd probably need to:
|
@zadjii-msft Thanks for the help! I'm currently working on it and trying to get the changing of the background to work. |
This is another department where @cinnamon-msft might want to weigh in on what this should look like relative to the design mockups we've already prepared. |
Daaaanng i like that mockup. When is this coming to the version in the Store?? |
For those who enabled Acrylic effects, can we also have it on the active tab BG? |
## Summary of the Pull Request Adds support for the `tab.background` property to themes. This is also a ThemeColor, so it accepts, colors, `accent`, and `terminalBackground`, just like everything else. ## References * See #3327 *⚠️ targets #12992⚠️ ## PR Checklist * [x] Closes #702 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated - YUP ## Detailed Description of the Pull Request / Additional comments I apparently left behing an optional color in TerminalTab for theme colors some time ago, just never used it. Crazy, huh? ## Validation Steps Performed gifs below
🎉This issue was addressed in #13178, which has now been successfully released as Handy links: |
My only problem with the released version is that tabs do not support opacity or acrylic. Which makes it impossible to match the colors perfectly if your Terminal background does. |
It's already in PR! #13935 |
That's a dead link. |
Yea, we're sorting out some bot rules. It's been unhappy ever since we switched to two separate builds for the same "version". https://github.com/microsoft/terminal/releases/tag/v1.16.2523.0 is the right URL for now. |
When work begins on polishing the user interface, it could be nice to make the tab and the console view feel connected, in a similar way to the teaser/trailer video shown at build tries to portray.
The window frame respects the app mode so Light or Dark. But each profile's tab, will match the customised settings.
The text was updated successfully, but these errors were encountered: