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

Add Text Coloring via CLI flag #290

Closed
o2sh opened this issue Oct 22, 2020 · 2 comments
Closed

Add Text Coloring via CLI flag #290

o2sh opened this issue Oct 22, 2020 · 2 comments
Assignees
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@o2sh
Copy link
Owner

o2sh commented Oct 22, 2020

By default, the info_lines' title (Project, HEAD, Pending, Version, etc) are colored based on the first color of the dominant language:

       let color = match self.colors().get(0) {
            Some(&c) => c,
            None => Color::White,
        };

It would be cool to let the user customize the text coloring via CLI flag, something like onefetch --text-color X X X X

This flag would work similarly to --colors except that it would only affect the text coloring.

The user would be able to provide up to 6 colors that would change the text colors in this order: title (red), ~ (green), underline (orange), title (maganta), colon (yellow), info (cyan)

go_text_color

@o2sh o2sh added help wanted Extra attention is needed good first issue Good for newcomers hacktoberfest labels Oct 22, 2020
@rogercyyu
Copy link
Contributor

Hello, I'd like to take a shot at this. I'm guessing a lot of lines in info.rs are gonna be modified...

@o2sh
Copy link
Owner Author

o2sh commented Oct 23, 2020

Thanks @rogercyyu

I'm guessing a lot of lines in info.rs are gonna be modified...

True 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants