[xmonad] Colored Tabs (was: Re: Newbie: Problems with Layouts
and Syntax)
Roman Cheplyaka
roma at ro-che.info
Sat Mar 1 00:00:25 EST 2008
* john spencer <mailinglists at speedpost.net> [2008-02-29 22:43:25+0100]
> 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/xmonad/attachments/20080301/45c4e139/attachment.bin
More information about the xmonad
mailing list