You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error text in debug console is low contrast with some themes #3326
How can i change the color of the gray text
The relevant error-causing widget was
Scaffold-[LabeledGlobalKey<ScaffoldS .....
i tried in settings.json the following:
"debugConsole.infoForeground": 000000,
"debugConsole.errorForeground": 000000,
"debugConsole.warningForeground": ffee00"
does not wok for that piece of text
Screenshots
Versions (please complete the following information):
We're currently using some grayscale values to try and dim text here, but those colours are not customisable and don't look great outside of fairly-dark or fairly-light backgrounds.
I'll see if I can find some alternatives in the customisable set, otherwise we might need to make this toggleable.
I've removed the. use of custom grey colours, and now write text as stderr where we want it red, and stdout otherwise. The only ansi code used is to fade the colour of stack frames that aren't part of your own code (which seems to work well for all themes).
Here's how it looks in Dark Theme:
Light theme:
Custom theme above (although I updated "debugConsole.errorForeground": "#990000" because it was originaly set to black and the error messages were less clear).
This should work better for all themes now, and be more customisable since it doesn't use codes that aren't themable in VS Code.
Activity
[-]Debug console exception log color[/-][+]Error text in debug console is low contrast with some themes[/+]DanTup commentedon May 10, 2021
@iulian0512 can you confirm which VS Code theme you're using (or if custom, can you provide the JSON/colour values)?
Thanks!
iulian0512 commentedon May 11, 2021
@DanTup here is my complete theme
vscodeGrayIulian.jsonc.txt
DanTup commentedon May 17, 2021
Thanks! It looks like themes can set some of the ansi colours:
We're currently using some grayscale values to try and dim text here, but those colours are not customisable and don't look great outside of fairly-dark or fairly-light backgrounds.
I'll see if I can find some alternatives in the customisable set, otherwise we might need to make this toggleable.
DanTup commentedon May 18, 2021
I've removed the. use of custom grey colours, and now write text as
stderrwhere we want it red, andstdoutotherwise. The only ansi code used is to fade the colour of stack frames that aren't part of your own code (which seems to work well for all themes).Here's how it looks in Dark Theme:
Light theme:
Custom theme above (although I updated
"debugConsole.errorForeground": "#990000"because it was originaly set to black and the error messages were less clear).This should work better for all themes now, and be more customisable since it doesn't use codes that aren't themable in VS Code.
iulian0512 commentedon May 18, 2021
it looks wonderful thanks.
Look for stake traces in stdout now only red text goes to stderr
Update color tests to account for new reset code