terminal icon indicating copy to clipboard operation
terminal copied to clipboard

[1.17] Setting the $theme.tabRow.background to `#00000000` results in double titlebar

Open carlos-zamora opened this issue 2 years ago • 2 comments

MicrosoftTeams-image (4)

carlos-zamora avatar Dec 15 '22 00:12 carlos-zamora

GAH GOD I thought I fixed that. Regressed probably in the last few commits of #13935

zadjii-msft avatar Dec 15 '22 12:12 zadjii-msft

Uh shoot I'm not seeing this

image

That's on 1.17.3481.0.

Maybe I need a different set of settings?

zadjii-msft avatar Jan 04 '23 14:01 zadjii-msft

So, I've noticed that I only see this after a settings reload... or sometimes when locking/unlocking my workstation. There's some interplay between the different window styles we go through on the way to "no titlebar."

DHowett avatar Jan 09 '23 19:01 DHowett

what settings tho

zadjii-msft avatar Jan 09 '23 19:01 zadjii-msft

This is all I've got in the themes department:

    "theme": "Cool Things",
    "themes": 
    [
        {
            "name": "Cool Things",
            "tab": 
            {
                "background": "terminalBackground",
                "showCloseButton": "always",
                "unfocusedBackground": null
            },
            "tabRow": 
            {
                "background": "#00000000",
                "unfocusedBackground": null
            }
        }
    ],
    "alwaysShowTabs": true,
    "showTabsInTitlebar": true,

DHowett avatar Jan 09 '23 19:01 DHowett

FUDGE okay, that does repro for me, with image

I'll figure that out. I bet there's a weird interaction between the #00000000 and the null

zadjii-msft avatar Jan 19 '23 21:01 zadjii-msft

Yep, that's what does it.

If the window is inactive when the settings are changed, the NCIW will use the current TitlebarBrush to determine if we need to totally obscure the titlebar or not. For this theme, the ThemeColor is null, so the NCIW evaluates that as opaque, so it decides it's fine to have a titlebar.

Easiest way to do this is probably expose another property out of applogic to make this easy.

zadjii-msft avatar Jan 19 '23 22:01 zadjii-msft

Thanks for digging through my bad bug reports haha

DHowett avatar Jan 19 '23 23:01 DHowett

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

Handy links:

ghost avatar Jan 24 '23 18:01 ghost