Skip to content
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

Use different padding for sides versus top (tabs) with 2015 Theme #665

Open
cuppm opened this issue Sep 15, 2021 · 1 comment
Open

Use different padding for sides versus top (tabs) with 2015 Theme #665

cuppm opened this issue Sep 15, 2021 · 1 comment
Labels

Comments

@cuppm
Copy link

cuppm commented Sep 15, 2021

I'm switching from the 2005 theme to the 2015 theme, but would like to retain the same padding style that 2005 uses. That is to say I want the sides and bottom to be 0 pixels padding (right at the edge of the client space) and the top to have a few pixels of padding between the top of the tabs and the edge of the client space.

This is 2005 theme spacing:
image

The default 2013+ padding value for Theme.Measures.DockPadding is 6. If I set the padding to 0 so the sides are filled to the client space, the tabs look smooshed up on the toolstrip. This is what I get when I set the Theme.Measures.DockPadding = 1.
image

From playing with it, there's a property in the VS2013DockPaneStrip class called DocumentTabGapTop that will do what I'm wanting. But it appears to be a property that's only read from (with default value of 0) and is private without any way of programmatically changing it outside of setting the return value to be a constant.

Is there a recommended way of going about making this work the way I want?

@lextm lextm added the question label Sep 15, 2021
@lextm
Copy link
Member

lextm commented Jul 3, 2022

You will have to develop your own theme based on the existing VS2005/2015 ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants