[xmonad] Colored Tabs (was: Re: Newbie: Problems with Layouts
and Syntax)
Roman Cheplyaka
roma at ro-che.info
Sat Mar 1 01:17:19 EST 2008
* Roman Cheplyaka <roma at ro-che.info> [2008-03-01 07:00:25+0200]
> * 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.
Here's possible solution: to push EDSL I defined in IM layout to a
separate module and use classname and other props instead of regexps
(must be sufficient in most cases).
Still I wait for the comments about new typeclass for decorations.
--
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/912e24a8/attachment.bin
More information about the xmonad
mailing list