vscode-git-worktrees icon indicating copy to clipboard operation
vscode-git-worktrees copied to clipboard

Feature Request - Different themes on new git worktree windows

Open darksidemilk opened this issue 1 year ago • 5 comments

First of all, thank you for making this amazing extension. It's been a game changer.

It would be a cool feature if a slightly different theme or window color was added to the new git worktree windows. So that there is a more visual distinction between the windows to help prevent accidentally making changes in the wrong worktree when you have multiple open.

Would probably need to be an optional setting as I realize some people get picky about their themes.

darksidemilk avatar Jun 06 '24 16:06 darksidemilk

Thank you for the feedback! I am glad you liked the extension.

Adding a distinct theme or window color for new git worktrees is a great idea to help differentiate them and prevent accidental changes. I will look into making this an optional setting to suit all preferences.

Thanks for the suggestion!

alexiszamanidis avatar Jun 07 '24 05:06 alexiszamanidis

Playing with it locally, vscode profiles might be a good place to start. If you just change the theme it changes it on different windows, but you can have different profiles in different windows image

darksidemilk avatar Jun 07 '24 17:06 darksidemilk

It would probably make more sense to change the master/main branch window to a different color and have the worktree colors be what you're used to, thus discouraging you from making changes in master/main. I suppose you can do what you want if it's a customizable setting.

darksidemilk avatar Jun 07 '24 18:06 darksidemilk

"workbench.colorCustomizations": {
  "titleBar.activeBackground": "#7a0a0a"
}
image

How about automatically changing the title bar color?

jackiotyu avatar Dec 07 '24 00:12 jackiotyu

That would work rather nicely

darksidemilk avatar Dec 07 '24 00:12 darksidemilk

Hi @darksidemilk @jackiotyu,

I’ve added a coloring feature that assigns a random color whenever you add or switch worktrees. Here’s a screenshot for reference. Please give it a try and share your feedback!

Pull Request: #43 Released Version: 2.4.0

Image

alexiszamanidis avatar Jun 07 '25 19:06 alexiszamanidis