Skip to content

Add more colors #199

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add more colors #199

wants to merge 3 commits into from

Conversation

tiberiugila
Copy link

Fixed #177 also added the first 16 colors to the color enum

Copy link

@alexandruradovici alexandruradovici left a comment

Choose a reason for hiding this comment

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

Delete the .idea folder.

@alexandruradovici
Copy link

Please change the title to your pull request to briefly reflect what it does.

@tiberiugila tiberiugila changed the title Fixed https://github.com/console-rs/console/issues/177 Fixed https://github.com/console-rs/console/issues/177(fixed white color and added the first 16 colors to the color enum) Jan 21, 2024
@jarjk
Copy link

jarjk commented May 6, 2025

I'd highly appreciate seeing this merged, as it'd help my work on creating a ratatui console backend.
is there anything I can help with?

self.fg(Color::Aqua)
}
#[inline]
pub fn brightwhite(self) -> Style {
Copy link
Member

Choose a reason for hiding this comment

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

This (and on_brightwhite()) should use bright_white to match the naming conventions.

@djc djc changed the title Fixed https://github.com/console-rs/console/issues/177(fixed white color and added the first 16 colors to the color enum) Add more colors May 6, 2025
@djc
Copy link
Member

djc commented May 6, 2025

I'd highly appreciate seeing this merged, as it'd help my work on creating a ratatui console backend. is there anything I can help with?

@JeromeSchmied I started to help maintaining this crate in December and have been doing passive maintenance (mostly because I am an indicatif maintainer and this is a dependency of that crate). Since this hadn't been touched for a while, I didn't spend time on it. It looks fairly straightforward to me so I think we can merge this once the naming issue has been fixed.

I don't know if @tiberiugila is still interested in following up, if they don't respond in a week or so feel free to take this PR and resubmit it.

@jarjk
Copy link

jarjk commented May 6, 2025

fair enough, thanks for checking!

@synalice
Copy link

I don't want to dunk on anyone's work, we're all doing this for free here, but how about we actually name colors meaningfully like it's done by owo_colors.

Having bright variants of base colors like red, green, yellow and blue would be much more useful than trying to guess what is Navy, Fuchsia, Maroon or others.

@synalice
Copy link

I'm open for submitting the PR myself, it just really bugs me that my indicatif progress bars are stuck with whatever we currently have while owo_colors is living it large.

And they also have NO_COLOR env variable support...

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.

white isn't white
6 participants