
* john spencer
Cool, works nice, thanks! :-) What do you think about coloring the tabs according to a matching title regexp? So one could give tabs containing a terminal a different color than ie. tabs containing emacs frames, etc.
It's not hard to add to decoration Theme a function field (Window->X (Maybe String)) which would return desired tab color, but this is an ad-hoc solution. Besides it's unclear what to do with such things as inactiveColor or urgentColor, or border colors. Should they all be functions? Or treat them as defaults, if function above returns Nothing? Better solution I can think of is splitting Theme into the two structures and introduce typeclass for decorations. Then we could implement colorful decorations as a different decoration, but share all the code which manages decorations. Such class (as far as I see) will contain only one method, updateDeco. Latter solution also seems useful in long term, as somebody once could want decorations with some icons or buttons or something else. What do you guys (esp. Andrea) think? PS I just realized that theme anyway won't be able to contain functions, as they don't belong Show. Hm. -- Roman I. Cheplyaka (aka Feuerbach @ IRC)