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

[FEATURE] - Allow to define a Project color #672

Open
thomasfrobieter opened this issue Feb 10, 2023 · 6 comments
Open

[FEATURE] - Allow to define a Project color #672

thomasfrobieter opened this issue Feb 10, 2023 · 6 comments

Comments

@thomasfrobieter
Copy link

I dont know if Vscode allows to define the background color of status bar items:

grafik

	{
		"name": "Drupal 9 > Base Theme",
		"rootPath": "$home\\Projects\\drowl-base-theme",
		"paths": [],
		"tags": [
			"+Drupal",
			"+Gitlab"
		],
		"enabled": true,
		"color": "#ff0000"
	},

Or maybe change the color of the whole status bar? https://code.visualstudio.com/api/references/theme-color

@alefragnani
Copy link
Owner

Hi @thomasfrobieter ,

There is no API to define color for items in the Side Bar, unfortunately.

About the Status Bar, I wound’t change its color, since VS Code itself (and themes) uses different Status Bar colors to define project states. As a possible alternative, it would be possible to define the background and/or foreground color of the item in the Status Bar. Would it work for you?

Hope this helps.

@l-e-e-o
Copy link

l-e-e-o commented Mar 7, 2023

Regarding the side bar: maybe you could do something like the Projects extension - they simply use colored icons.

@thomasfrobieter
Copy link
Author

About the Status Bar, I wound’t change its color, since VS Code itself (and themes) uses different Status Bar colors to define project states. As a possible alternative, it would be possible to define the background and/or foreground color of the item in the Status Bar. Would it work for you?

Definitely! :)

Regarding the side bar: maybe you could do something like the Projects extension - they simply use colored icons.

Ouh yes, thank you, this looks pretty interesting, too!

@UrielCh
Copy link

UrielCh commented Jul 17, 2023

Hi,

I'm using peacock to identify, my project that would be nice to be able to show the project color in this extention.

for now I can use emoji:

🔴 Red Circle: This emoji represents the color red.
🟠 Orange Circle: This emoji represents the color orange.
🟡 Yellow Circle: This emoji represents the color yellow.
🟢 Green Circle: This emoji represents the color green.
🔵 Blue Circle: This emoji represents the color blue.
🟣 Purple Circle: This emoji represents the color purple.
🟤 Brown Circle: This emoji represents the color brown.
⚫ Black Circle: This emoji represents the color black.
⚪ White Circle: This emoji represents the color white.

+1

@FiB3
Copy link

FiB3 commented Nov 10, 2023

I wanted to ask for a similar thing.
Maybe this will help to somebody? I am setting the .vscode.settings.json with following (I change colors for each project):

{
    "workbench.colorCustomizations": {
        "titleBar.activeBackground": "#0011ff",
        "titleBar.activeForeground": "#ffffff",
        "statusBar.background": "#0011ff",
        "statusBar.foreground": "#ffffff"
    }
}

Out of the box support would be nice though.

@alefragnani
Copy link
Owner

Hi,

Looking closer to this feature, since I'm playing with #299, it seems we should have a small issue with icon colors. I still have to properly confirm this, but it is almost certain it works this way.

In order to be able to define colors to individual projects, I see two alternatives today:

  • The color to be applied to the project name only, remaining the current themeable icon untouched (if you use any File Icon Theme at all)
  • The color to be applied also to the icon, but it means it won't respect the File Icon Theme you are using.

This happens because Themeable Icons doesn't support color values using hex / rgb, but only via named values, like the one you customize via workbench.colorCustomizations.

Hope this helps

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

No branches or pull requests

5 participants