[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] color customization



An agent or agents purporting to be David Rysdam said:
> I've customized my colors a bit, but there's a couple things I can't
> find.  How do I configure the color the movable horizontal "bar" (I
> know there's a term for this but I don't remember it)?  And more
> importantly, how do I configure the color the text highlighted by that
> bar?  Like, I have my new messages set to red but when the bar is on
> them they are black.  I want them red *always*.

Replying to myself again, for the benefit of others and after two
nights of hacking the code to try to figure this out:

Each of the colors takes a property called "highlight" that is the
name of another color in colors.yaml.  That color's fg/bg indicate how
it should display when "highlighted" by the cursor.  For example:

:index_new:
  :highlight: index_new_highlight
  :attrs:
  - bold
  :fg: red
  :bg: default
:index_new_highlight:
  :fg: red
  :bg: cyan

In this example, new mails are red in the thread view on a white
background (for me) and when highlighted by the cursor they are red on
a cyan background.

This works with the code currently in the repository but not with
.10.2, the default version on Ubuntu.  Since .10.2 also doesn't use
ncursesw by default, I'm going to switch the repository pretty soon.
Or maybe a few versions back to avoid any Maildir unpleasantness...
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk