Controlling the background color of the active tab in an unfocused editor group#73848
Conversation
…an unfocused editor group
bpasero
left a comment
There was a problem hiding this comment.
This is a good start but unfortunately the tab background color is a bit special. See the usages of TAB_ACTIVE_BACKGROUND in the source code to understand why. We will have to adjust these places for the unfocused group as well I think.
|
Thanks for the feedback @bpasero, highly appreciated, but I'm not sure I understand the extent of it. The only usages I see of TAB_ACTIVE_BACKGROUND are in the file where I made my changes. I see it used in dragging/dropping the tabs (something that I see working just fine with my change) and those places are not affected by the color of the active tab when unfocused (since the tab is supposed to be focused while dragging). There's a place in |
|
@dmolin this applies when the tabs are configured to shrink (as you can see from the |
…enabled in tab sizing
|
@bpasero Yeah you're right! In the screenshot you can see how it looks in shrink mode, so I now have full control not only of the borders but also of the background of the active tab in an unfocused editor group: I just pushed my changes. 😄 |
|
@bpasero I made the last few tweaks and tested it. Ready for review. |
…code and reduce redundancies
|
@dmolin should I do a final review, I think I can merge this today |
|
@bpasero yes, go for it 👍 |
|
@dmolin is there a reason you chose to use |
I thought about adding Tbh, I tested it with ":not(.active)" and it seemed to work just fine but, again, I'm not super sure if adding the more specific selector might have impacts on something else... |
|
Ok thanks I will change and probably align. |
|
@bpasero as you prefer. If you want I can make the change in a second, just let me know 😄 |
|
@dmolin thanks, I merged it in. |

It's currently not possible to set the background color of the active tab in un unfocused editor group.
With this PR we can now control the background color for the active tab in an unfocused editor group through the "tab.unfocusedActiveBackground" setting (under ""workbench.colorCustomizations").