darcs patch: WindowNavigation: don't export the confi... (and 3 more)

Hi all,
I couldn't stand the ugliness of the border-color code. This computes
properly a border that is an average of your focussed and normal border
colors, averaged in rgb space. I'm not sure about the best default
weighting of this average, but am sure that this is the nicest default
behavior: you can see which way navigation will take you, but you don't
have to configure yet another color, and it automatically matches with
whatever you've already got in your config.
Perhaps we could do something analogous for tab colors? Users probably
usually only want to configure the background and foreground colors and
maybe the contrast? Right now, we've got six colors, and if you change
one, you probably want to change three, which suggests they aren't as
orthogonal as they could be.
David
Sat Oct 13 05:05:24 EDT 2007 Andrea Rossato

On Tue, Oct 16, 2007 at 02:39:42PM -0700, David Roundy wrote:
+ Color p _ _ _ _ <- io $ allocColor d cm (Color 0 (mn r1 r2) (mn g1 g2) (mn b1 b2) 0)
Possibly stupid question -- is there any danger in not freeing the alloc'd Color?

On Tue, Oct 16, 2007 at 06:19:36PM -0400, Devin Mullins wrote:
On Tue, Oct 16, 2007 at 02:39:42PM -0700, David Roundy wrote:
+ Color p _ _ _ _ <- io $ allocColor d cm (Color 0 (mn r1 r2) (mn g1 g2) (mn b1 b2) 0)
Possibly stupid question -- is there any danger in not freeing the alloc'd Color?
On a truecolor system, no. On a pseudocolor system, you can only alloc so many colors (256 is typical, but I've seen 64) before it starts failing. (Consider that Xmonad is marketed as good for low end systems) Stefan

On Tue, Oct 16, 2007 at 03:28:28PM -0700, Stefan O'Rear wrote:
On Tue, Oct 16, 2007 at 06:19:36PM -0400, Devin Mullins wrote:
On Tue, Oct 16, 2007 at 02:39:42PM -0700, David Roundy wrote:
+ Color p _ _ _ _ <- io $ allocColor d cm (Color 0 (mn r1 r2) (mn g1 g2) (mn b1 b2) 0)
Possibly stupid question -- is there any danger in not freeing the alloc'd Color?
On a truecolor system, no.
On a pseudocolor system, you can only alloc so many colors (256 is typical, but I've seen 64) before it starts failing.
(Consider that Xmonad is marketed as good for low end systems)
Any idea how to fix this? -- David Roundy Department of Physics Oregon State University
participants (3)
-
David Roundy
-
Devin Mullins
-
Stefan O'Rear