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

Warning status bar color should not be hardcoded #239

Closed
sapegin opened this issue May 15, 2017 · 7 comments
Closed

Warning status bar color should not be hardcoded #239

sapegin opened this issue May 15, 2017 · 7 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@sapegin
Copy link
Contributor

sapegin commented May 15, 2017

statusBarItem.color = 'yellow';

Now you can configure status bar color, so it’s possible to have bad contrast:

image 2017-05-15 at 9 17 44 am

Not sure what would be the best fix there since there’s only one foreground option. Probably we can detect if we have light or dark status bar background and use different text colors.

@dbaeumer
Copy link
Member

dbaeumer commented Jun 6, 2017

Agree.

@aeschli any advice which color to use here.

@dbaeumer dbaeumer added this to the June 2017 milestone Jun 6, 2017
@dbaeumer dbaeumer added the bug Issue identified by VS Code Team member as probable bug label Jun 6, 2017
@aeschli
Copy link

aeschli commented Jun 6, 2017

@dbaeumer What does the color signal? Error/Warning?

@dbaeumer
Copy link
Member

dbaeumer commented Jun 6, 2017

@aeschli attention. Both error or warning would be fine.

@aeschli
Copy link

aeschli commented Jun 6, 2017

https://github.com/Microsoft/vscode-docs/blob/vnext/docs/getstarted/theme-color-reference.md has all the colors (for 1.13).
I'd suggest using:

  • statusBarItem.prominentBackground: Status Bar prominent items background color. Prominent items stand out from other Status Bar entries to indicate importance.

For error/warning we have:
editorWarning.foreground and editorError.foreground but they are tuned for the editor background and might not work well with the status bar.

@dbaeumer
Copy link
Member

@aeschli thanks !

@Hirse
Copy link
Member

Hirse commented May 24, 2018

Is this issue still relevant given that the StatusBarItem has an icon to indicate the status and the hardcoded color is gone?

@sapegin
Copy link
Contributor Author

sapegin commented May 25, 2018

Looks good now!

image 2018-05-25 at 9 21 44 am

@sapegin sapegin closed this as completed May 25, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 9, 2018
@dbaeumer dbaeumer removed this from the On Deck milestone Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants