Support using different colors in the titlebar for focused/unfocused windows #6805

Closed
opened 2026-01-31 00:47:38 +00:00 by claunia · 13 comments
Owner

Originally created by @parml on GitHub (Mar 10, 2020).

Description of the new feature/enhancement

Context
When working on large monitors it is possible to have up to 6 windows in tiled mode. It is useful to know which one will pick up the keyboard actions without mouse or alt-tab hunting. For that it would be useful to have a different title bar color for the active window to distinguish it from all the other windows.

Solution on Windows
One can pick a color for the active window (HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM\AccentColor, say soft blue, can be done through settings)
and a color for inactive windows (HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM\AccentColorInactive, say light gray, in windows 10 can be done through regedit only)

Applications that work with the two values above: Windows Explorer, Registry Editor, Total Commander, Mozilla Firefox (default theme), Google Chrome (default theme).

Terminal seems to not work with the two values.

That may be at odds with the application identity. (The discontinued Microsoft Edge 44 used the same gray as a strong identity element, Microsoft Office programs also boldly state color identity and ignore AccentColorInactive, VSCode states identity as boldly, however it displays the titlebar in a different color when inactive).
Nevertheless, screens only get larger and the use-case described above is likely to become more common.

In terms of how to implement that for Terminal, which displays tabs on the title bar, Firefox has the solution of using the accent color on all inactive tabs and highlighting the active tab using a brighter color. Chrome does the same.

Originally created by @parml on GitHub (Mar 10, 2020). # Description of the new feature/enhancement *Context* When working on large monitors it is possible to have up to 6 windows in tiled mode. It is useful to know which one will pick up the keyboard actions without mouse or alt-tab hunting. For that it would be useful to have a different title bar color for the active window to distinguish it from all the other windows. *Solution on Windows* One can pick a color for the active window (`HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM\AccentColor`, say soft blue, can be done through settings) and a color for inactive windows (`HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM\AccentColorInactive`, say light gray, in windows 10 can be done through regedit only) Applications that work with the two values above: Windows Explorer, Registry Editor, Total Commander, Mozilla Firefox (default theme), Google Chrome (default theme). Terminal seems to not work with the two values. That may be at odds with the application identity. (The discontinued Microsoft Edge 44 used the same gray as a strong identity element, Microsoft Office programs also boldly state color identity and ignore `AccentColorInactive`, VSCode states identity as boldly, however it displays the titlebar in a different color when inactive). Nevertheless, screens only get larger and the use-case described above is likely to become more common. In terms of how to implement that for Terminal, which displays tabs on the title bar, Firefox has the solution of using the accent color on all inactive tabs and highlighting the active tab using a brighter color. Chrome does the same.
Author
Owner

@zadjii-msft commented on GitHub (Mar 10, 2020):

Thanks for the suggestion! I'm going to track this as a part of #3327, which is our megathread for adding even more customization to the Terminal. This request fits in nicely with a lot of the other work being done there.

@zadjii-msft commented on GitHub (Mar 10, 2020): Thanks for the suggestion! I'm going to track this as a part of #3327, which is our megathread for adding even more customization to the Terminal. This request fits in nicely with a lot of the other work being done there.
Author
Owner

@takahar commented on GitHub (Apr 24, 2020):

I think the active titlebar color was in effect when I am using WT without tab (setting: "globals":{"alwaysShowTabs":false, "showTabsInTitlebar": false} ), but it was with before than or equal to version 0.10 .
With 0.11, I cannot completely hide the tabs, so this issue is more important.

@takahar commented on GitHub (Apr 24, 2020): I think the active titlebar color was in effect when I am using WT without tab (setting: "globals":{"alwaysShowTabs":false, "showTabsInTitlebar": false} ), but it was with before than or equal to version 0.10 . With 0.11, I cannot completely hide the tabs, so this issue is more important.
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 24, 2020):

I cannot completely hide the tabs

This behavior hasn't changed in 0.11, you're just running into the settings file changes we made. #5458 for more info.

@DHowett-MSFT commented on GitHub (Apr 24, 2020): > I cannot completely hide the tabs This behavior hasn't changed in 0.11, you're just running into the settings file changes we made. #5458 for more info.
Author
Owner

@takahar commented on GitHub (Apr 24, 2020):

Thank you @DHowett-MSFT, I moved "globals" setting to root, and I got the original effect.
The titlebar color is in effect when with no tabs and tabs not in titlebar ("showTabsInTitlebar":false).
Instead, the titlebar color is not in effect when tabs in titlebar ("showTabsInTitlebar":true (this is the default)).

@takahar commented on GitHub (Apr 24, 2020): Thank you @DHowett-MSFT, I moved "globals" setting to root, and I got the original effect. The titlebar color is in effect when with no tabs and tabs not in titlebar ("showTabsInTitlebar":false). Instead, the titlebar color is not in effect when tabs in titlebar ("showTabsInTitlebar":true (this is the default)).
Author
Owner

@plastikfan commented on GitHub (Jun 3, 2020):

I'm a new comer to Windows Terminal and have found it to be a revelation, especially when you combine being able to use beautiful fonts like Cascadia or Nerd Fonts. However, my heart sinks when I see that drab battleship grey for the title bar colour. What gets me is that there must have been an active decision to make it grey as opposed to leave it to the system default of using accent colours defined in systems settings.

Whilst issue #3327 is being considered for development, I would hope in the mean time we could see a simple stop-gap solution being applied where Terminal just uses the Accent colours as defined in system settings.

@plastikfan commented on GitHub (Jun 3, 2020): I'm a new comer to Windows Terminal and have found it to be a revelation, especially when you combine being able to use beautiful fonts like Cascadia or Nerd Fonts. However, my heart sinks when I see that drab battleship grey for the title bar colour. What gets me is that there must have been an active decision to make it grey as opposed to leave it to the system default of using accent colours defined in systems settings. Whilst issue #3327 is being considered for development, I would hope in the mean time we could see a simple stop-gap solution being applied where Terminal just uses the Accent colours as defined in system settings.
Author
Owner

@Poopooracoocoo commented on GitHub (Jun 19, 2020):

^yeah. #3327 is very different

@Poopooracoocoo commented on GitHub (Jun 19, 2020): ^yeah. #3327 is very different
Author
Owner

@tveyben commented on GitHub (Jun 30, 2020):

"…Microsoft Office programs also boldly state color identity and ignore AccentColorInactive…"

I have been googling for many hours trying to find a solution for making it possible to identify an active / in-active Office 365 application.
I am surprised of the lack of such basic functionality (it was possible in Win2k and likely even before that) to make it easy to identify which window actually have focus (hence gets the keyboard events).

This is totally of-topic for this Terminal-issue (sorry), but since we have the attention of some fine Microsoft engineers working on good stuff (linux) PLEASE let me know where to post this wish in the hopes that I can wake up who ever fell asleep in the "UX for beginners" class

@tveyben commented on GitHub (Jun 30, 2020): > "…Microsoft Office programs also boldly state color identity and ignore AccentColorInactive…" I have been googling for _many hours_ trying to find a solution for making it possible to identify an **active** / **in-active** Office 365 application. I am surprised of the lack of such basic functionality (it was possible in Win2k and likely even before that) to make it easy to identify which window actually have focus (hence gets the keyboard events). This is totally of-topic for this Terminal-issue (sorry), but since we have the attention of some fine Microsoft engineers working on good stuff (linux) PLEASE let me know where to post this wish in the hopes that I can wake up who ever fell asleep in the "UX for beginners" class
Author
Owner

@Poopooracoocoo commented on GitHub (Aug 2, 2020):

And Terminal's title bar elements don't dim when the window is inactive. Should I create an issue for this (if there isn't one already)?

@Poopooracoocoo commented on GitHub (Aug 2, 2020): And Terminal's title bar elements don't dim when the window is inactive. Should I create an issue for this (if there isn't one already)?
Author
Owner

@DHowett commented on GitHub (Aug 2, 2020):

That is tracked at the root of issue #1625. Thanks! 😄

@DHowett commented on GitHub (Aug 2, 2020): That is tracked at the root of issue #1625. Thanks! :smile:
Author
Owner

@Poopooracoocoo commented on GitHub (Jul 22, 2021):

this is actually just like #1963

@Poopooracoocoo commented on GitHub (Jul 22, 2021): this is actually just like #1963
Author
Owner

@zadjii-msft commented on GitHub (Jul 22, 2021):

There's a subtle difference between this and #1963 - that one just wants to be able to set a custom titlebar color. This one wants to be able to set custom titlebar color when focused, and a different color when unfocused.

@zadjii-msft commented on GitHub (Jul 22, 2021): There's a subtle difference between this and #1963 - that one just wants to be able to set a custom titlebar color. This one wants to be able to set custom titlebar color when focused, and a _different_ color when unfocused.
Author
Owner

@zadjii-msft commented on GitHub (Mar 7, 2022):

note to self: The old colors in #12635 might be good candidates for the inactive window colors. We may be able to do that following the sameish steps as in https://github.com/microsoft/terminal/issues/12632#issuecomment-1060678947, without adding the rest of the theming settings.

@zadjii-msft commented on GitHub (Mar 7, 2022): note to self: The old colors in #12635 might be good candidates for the inactive window colors. We may be able to do that following the sameish steps as in https://github.com/microsoft/terminal/issues/12632#issuecomment-1060678947, without adding the rest of the theming settings.
Author
Owner

@ghost commented on GitHub (Sep 13, 2022):

:tada:This issue was addressed in #13049, which has now been successfully released as Windows Terminal Preview v1.16.252.🎉

Handy links:

@ghost commented on GitHub (Sep 13, 2022): :tada:This issue was addressed in #13049, which has now been successfully released as `Windows Terminal Preview v1.16.252`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.16.252) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6805