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

Adds a bit of contrast to the comments in the code editor #859

Merged

Conversation

cristineguadelupe
Copy link
Contributor

With the current color, the comments are almost unreadable. A little more contrast while keeping the same shade of gray increases readability without losing the consistency of the theme.

Screen Shot 2022-01-12 at 23 04 00

Screen Shot 2022-01-12 at 23 32 36

@@ -4,7 +4,7 @@ const colors = {
default: "#abb2bf",
lightRed: "#e06c75",
blue: "#61afef",
gray: "#5c6370",
gray: "#737A8C",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
gray: "#737A8C",
gray: "#737a8c",

@@ -14,7 +14,7 @@ to be consistent with the editor.
--ansi-color-magenta: #c678dd;
--ansi-color-cyan: #56b6c2;
--ansi-color-white: white;
--ansi-color-light-black: #5c6370;
--ansi-color-light-black: #737a8c;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This font is used on white background I think. Are we sure we want to change it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The difference on white backgrounds is less prominent than on dark backgrounds, but the old gray is no doubt better, and I'm keeping it.

Screen Shot 2022-01-13 at 13 49 03

Screen Shot 2022-01-13 at 13 49 33

@josevalim
Copy link
Contributor

@cristineguadelupe i think the change you did to code comments was good, I think we should just use two different shades of gray. One for comments, another for ansi. :)

@cristineguadelupe cristineguadelupe merged commit 89835f5 into livebook-dev:main Jan 13, 2022
@cristineguadelupe cristineguadelupe deleted the cg-comments-contrast branch January 13, 2022 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants