Skip to content

Conversation

@a-stewart
Copy link
Contributor

This fixes #157312

Before:
image

After:
image

@a-stewart
Copy link
Contributor Author

Hi,

Small ping on this. I'm happy to update the PR with the newest changes if this is something you would be willing to consider?

I think it gives more flexibility to theme owners and makes sense from a UI point of view with the high contrast themes.

@sbatten sbatten assigned benibenj and unassigned sbatten Oct 11, 2024
@benibenj
Copy link
Contributor

Apologies for the delay here, ownership of this feature area has recently changed.
This seems reasonable to me. I see there are a couple of merge conflicts going on. If you fix those I'd be happy to have a look at the PR.

@a-stewart
Copy link
Contributor Author

Apologies for the delay here, ownership of this feature area has recently changed.
This seems reasonable to me. I see there are a couple of merge conflicts going on. If you fix those I'd be happy to have a look at the PR.

No worries, I've merged in the latest changes and resolved the issues.

@benibenj
Copy link
Contributor

image

@a-stewart
Copy link
Contributor Author

The challenge with this is that if we move the border line down in that way, there is an awkward intersection with the line coming up in the panel:

image

One option that does seem to work though is just setting box-sizing: content-box. This will allow the header to grow slightly from border, rather than letting the border encroach onto the content.

@a-stewart
Copy link
Contributor Author

Just done some more experimenting and setting the height to anything else causes issues too.

Additionally, I think we want the border line where it is so that everything lines up in the top row.

Looking at this everything should work, except that the .componsite-bar which normally has height 100% is fixed at 35px in the .title. Removing this hard coding seems to work as expected.

@benibenj benibenj added this to the November 2024 milestone Oct 22, 2024
@a-stewart a-stewart requested a review from benibenj November 1, 2024 15:54
@benibenj benibenj enabled auto-merge (squash) November 29, 2024 11:41
@benibenj benibenj merged commit 9fa0171 into microsoft:main Nov 29, 2024
7 checks passed
@vimchun
Copy link

vimchun commented Dec 28, 2024

Hi, now, I have a lot of borders in green everywhere on VSCode with my theme "One Dark Pro".
I know I can put a border in transparent, but I think there are a lot.
I would like to have all these new border transparent, or not displaying at all (like it was before the update).
Is there an option to do it, instead of doing something like that ?

{
    "workbench.colorCustomizations": {
        "[One Dark Pro]": {
            "titleBar.border" : "#00000000",
            "activityBar.border" : "#00000000",
            "statusBar.border": "#00000000",
            "sideBar.border":  "#00000000",
            "input.border": "#00000000",
            "panel.border" : "#00000000"
            // ...
            // ...
        }
    }
}

@a-stewart
Copy link
Contributor Author

a-stewart commented Dec 28, 2024

Unless something weird has happened with the merge this should default to undefined (for non-high contrast themes).

I've tested One Dark Pro (the one with 10 million installs) on insiders.vscode.dev and it looks normal.

Could you confirm exactly which theme you are using from which extension please.

@benibenj
Copy link
Contributor

@vimchun can you also specify if you changes the activity bar location? Did you maybe move it to the top? It might look different then

@a-stewart
Copy link
Contributor Author

a-stewart commented Dec 28, 2024

It seems like on the non-web version setting "oneDarkPro.editorTheme": "Retro" will add borders (after a reload), but it looks like this is the desired effect based on the marketplace screenshot?

@vimchun
Copy link

vimchun commented Dec 28, 2024

@benibenj :
My activity bar is on the right side.

@a-stewart
I use this theme : https://github.com/Binaryify/OneDark-Pro
You are right, I recently added "oneDarkPro.editorTheme": "Retro".
I could not find it was the culprit on my configuration, because I did not reload VSCode after removing it (I knew something must be wrong with my configuration, as I did not see anyone else complaining).
After removing that setting (and reload VSCode), everything is fine.

Thank you for your help !

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for borders below Sidebar and Panel titles.

7 participants