On 11 Jun 2003 00:02:31 +1000, Scott Smedley wrote:
> 
> > Please try new Colorsets tracker. Making the colorset fg/bg work is not
> > interesting. It would be nice if you can make colorset pixmaps work using
> > Perl/Tk or X11::Protocol. Maybe you can create a Tk window that shows all
> > available colorsets using rectangle of 48x48 and some text in it (like
> > colorset number in brackets). I am waiting for your experiments. :)
> 
> Well my "experiments" are complete. I couldn't work out a way to do it
> with just Tk so I ended up using Tk & X11::Protocol. Be warned though:
> this is nasty code - its only purpose was to provide me with an intellectual
> challenge! (or did you have a greater purpose in mind?)

This is nice. And it is not such nasty, I can understand it, no problems.
It seems Colorset tracker has a small problem in reporting the new
colorset data in the place where the old should be reported.

The purpose of such tool is clear. If you have a lot of colorsets, for
example fvwm-themes uses about 37, you want to see them all.

Some problems with the attached module:

* It doesn't sort colorsets, I added "sort { $a <=> $b }" to keys.
* It shows only 12 first colorsets for me, the scrollbar widget should be
  added. I should add "Style ShowColorsets ResizeHintOverride", otherwise
  Tk limits its windows to the screen size.
* It is a bit slow. Yes, it creates 148 colored rectangles in my case,
  surrounded by other widgets, but 14 sec even on my slow CPU is many.
* There is an error in line 49, dump() gets a wrong parameter.
* There is a problem with refresh, try to WindowShade the window.
* Only tiled pixmaps are supported. But here probably nothing can be done
  without implementing rendering for other pixmap types.

Actually I intended that one 3d-looking rectangle (that uses all fg, bg,
sh, hi, fgsh, pixmap) is shown for one colorset, but showing 6 rectangles
may be useful too.

Other than this, a great tool. :)

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to