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

[PrettyPrinter] Error Color: Force foreground color to white #9

Closed
Bungeefan opened this issue Feb 27, 2023 · 3 comments
Closed

[PrettyPrinter] Error Color: Force foreground color to white #9

Bungeefan opened this issue Feb 27, 2023 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Bungeefan
Copy link
Member

Bungeefan commented Feb 27, 2023

I am creating this issue to pick up this pull request: simc/logger#137

Summary

PrettyPrinter: Force the foreground color always to white for the red and pink background color.

Status

Currently, foreground color isn't set therefore, the terminal will use the default foreground color to write on the error/wtf background, whichever that it.

Discussion

As far as I am aware, both VSC and Android Studio uses a good contrast color for the foreground, which should provide a good readability when writing on the terminal default background (which we are not when printing the error message).
Therefore, forcing no foreground color can result in a worse readability, depending on the theme settings of the terminal and so on.

Please share your opinions and ideas on this topic!

My opinion

I did never experience great readability with a bright red background, yes some colors and combinations are better, but it's just not really enjoyable trying to read the error message.
I see no point in painting the error with a bright red background when everything else in the log is already screaming for attention.

I would remove the additional background color of the error as a whole and treat it the same way as the other text in the error log.

@Bungeefan Bungeefan added the help wanted Extra attention is needed label Feb 27, 2023
@Bungeefan Bungeefan changed the title [PrettyPrinter] Error Color: force foreground color to white [PrettyPrinter] Error Color: Force foreground color to white Feb 27, 2023
@DJTB
Copy link

DJTB commented Mar 6, 2023

Anything would be better than the current blue on red.
Removing the additional background color seems sensible and consistent to me 👍

@Bungeefan
Copy link
Member Author

I just want to mention that only VSC seems to be using blue as foreground color, independent of the current theme.
Android Studio on the other hand seems to be using white on dark background and black on light background.

However, neither of these choices are great when used with a red background in terms of visibility and accessibility.

@shirne
Copy link

shirne commented Jun 5, 2023

remove the background of error is a good idea.

@Bungeefan Bungeefan self-assigned this Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants