Jeremy Hinegardner
1/16/2007 5:27:00 AM
On Tue, Jan 16, 2007 at 12:20:16PM +0900, Gregory Brown wrote:
> On 1/15/07, Gregory Brown <gregory.t.brown@gmail.com> wrote:
>
> Oh, i didn't quite understand the question. You should definitely use
> Highline for coloring, unless you have needs it does not cover. I
> don't know how James would feel, but honestly, I think it'd be a great
> idea to introduce a 'color profile' configuration you can load into
> HighLine that'd allow for you to set names like:
>
> Highline.color_profile do |c|
> c.main_color "cyan"
> c.alert_color "red"
> end
>
> # or maybe
>
> Highline.color_profile("colors.yaml")
>
> So if you're in a library writing mood, maybe you can just give us a
> patch that does that? :)
> I imagine this would be super easy to implement, and would be great
> for letting users easily tweak their configs.
Yeah, something along those lines. I'll give it some thought and see
what I can come up with and contribute it to Highline. The application
colour profile, registers "types" of color, main, alert, warning etc and
then those can be overwritten by a user by loading a different profile
or something along those lines.
I'm in the library writing mood. Let me see what pops out.
Good suggestions all around.
enjoy,
-jeremy
--
========================================================================
Jeremy Hinegardner jeremy@hinegardner.org