Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Changes to text and ascii color handling #96

Merged
merged 7 commits into from
Feb 23, 2016
Merged

Changes to text and ascii color handling #96

merged 7 commits into from
Feb 23, 2016

Conversation

dylanaraps
Copy link
Owner

This PR changes the way we set text and ascii colors allowing us to
set the text to distro colors in any image mode.

By default text will be colored according to your distro's logo colors
no matter what image mode you're in. The current implementation
in master only works when the user is in ascii mode.

This PR removes all of the *_colors options and replaces them
with a single colors variable and flag. For example:

# Colors the text in this order:
# title, @, underline, subtitle, colon, info
# --colors 1 2 3 4 5 6
colors=(1 2 3 4 5 6)

# Colors the text according to distro logo.
# This is default
# --colors distro
colors=(distro)

Using --colors with no arguments will now disable text colors
entirely. (fetch --colors)

Another cool feature is that when $colors is set to distro and you
change --ascii_colors or $ascii_colors to a custom value the text
changes with it.

I'm still working on this but it's pretty much complete, let me know
what you guys think about it.

dylanaraps added a commit that referenced this pull request Feb 23, 2016
Changes to text and ascii color handling
@dylanaraps dylanaraps merged commit 5a840d8 into master Feb 23, 2016
@dylanaraps dylanaraps deleted the auto_colors branch February 23, 2016 10:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant