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 support for Light colors and Bright modifier #7

Merged
merged 6 commits into from
Apr 17, 2019

Conversation

snaggen
Copy link

@snaggen snaggen commented Mar 20, 2019

This adds support for more ansi colors, the light ones.
However, it made things a little strange so I have done some adjustments.
The previous Gray was really Dark White, so now with addition of light colors we also have Light Black which is a darker gray than dark white. So I have changed them for so the dark white is now Light Gray and dark black is gray. So basically, this means that for existing applications using Gray, it just got darker.
Also, there is no LightBrown, since Brown really was dark yellow. So the Light Brown is just called Yellow.

@snaggen
Copy link
Author

snaggen commented Mar 20, 2019

Oh, didn't run the tests... realize the color change made it fail... I might try to fix that later

@coveralls
Copy link

coveralls commented Mar 20, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling cb65dd3 on snaggen:master into a7b3b31 on logrusorgru:master.

@snaggen
Copy link
Author

snaggen commented Mar 20, 2019

You really have setup the tests to prevent me from being lazy... I'll fix the code coverage some other day... :)

@snaggen
Copy link
Author

snaggen commented Mar 26, 2019

And we are back at 100% coverage... so feel free to merge.

@logrusorgru
Copy link
Owner

Ok, I'm reviewing it.

@snaggen
Copy link
Author

snaggen commented Mar 29, 2019

Wait with the review, I just realize that I use the same BrightFm modifier for both background and foreground, which means you can't mix a dark background and a bright foreground.
I'll fix this and get back to you

@snaggen snaggen changed the title Add support for Light colors and Bright modifier [WIP] Add support for Light colors and Bright modifier Mar 29, 2019
Also removed the Bright function, it is not really
useful on its own.
@snaggen snaggen changed the title [WIP] Add support for Light colors and Bright modifier Add support for Light colors and Bright modifier Apr 1, 2019
@snaggen
Copy link
Author

snaggen commented Apr 1, 2019

Now this should be ok for review again.

@logrusorgru
Copy link
Owner

Ok, thank you, sir. I'm reviewing it.

@logrusorgru logrusorgru merged commit cb65dd3 into logrusorgru:master Apr 17, 2019
@logrusorgru
Copy link
Owner

A bit remastered.

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.

None yet

3 participants