-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(cli): colored text is unreadable when using light themes #5250
Conversation
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsure if this change is still needed as we support disabling color and style from console output
@shivlaks This change is still relevant for users with light colour scheme, who do want to use colours. |
@netroy that makes more sense to me. Users who want colors in light-colored terminals should have a better experience. Can you add some screenshots of what this looks like (with light and dark colored terminals). |
I just realized that Also, the @shivlaks if you believe that we should fix this, I can update |
Pull request has been modified.
white
as the foreground colorconsole.*
from logging, & fix color issues for light themes
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
5 similar comments
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Can you update the body of the request to capture the rationale as well as the screenshots with this implementation for posterity
- There's a merge conflict to straighten out
- I'm wondering if there's something we could be doing to test this?
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
done
done
I'm open to ideas. The only thing i see, that I can test, is the behavior of the debug function. But testing that behavior seems unrelated to the changes in this PR. |
Pull request has been modified.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@shivlaks just rebased this again. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
respect the user's color scheme
console methods use their own set of colors, which CDK then has to override. Switching to stdout/stderr streams gets rid of this step.
Pull request has been modified.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
console.*
from logging, & fix color issues for light themes Pull request has been modified.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thanks a lot @shivlaks 🤗 |
fixes #5242
For someone using a light-colored background on their terminal, white colored text is unreadable.
This change respects the user's foreground color preferences.
Screenshots
Light color scheme
Dark color scheme
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license