[Dan Espen - Thu, 17 May 2001 12:11:52 PM CDT]
> Buttons don't have foreground and background colors.
> Only "Solid colorname", which I guess you could take to be
> the background. I suppose you could use the HilightFore color
> as the foreground.
Buttons take the highlight/shadow/foreground/background colors that are
given to the border. I know this, because I have a theme that uses this
to get proper vector line colors for different focus/unfocus colors.
Generating 50 different pixmaps that are basically the same, except for
the color, seems rather wasteful if it can be taken care of in some more
automatic way.
For instance, I currently use highlight/shadow colors for this:
# A low bar.
AddButtonStyle 1 Vector 5 14x63_at_1 77x63_at_1 77x77_at_1 14x77_at_1 14x63_at_1
# A square. with a thicker top side
AddButtonStyle 4 Vector 7 14x14_at_1 77x14_at_1 77x21_at_1 14x21_at_1 14x77_at_1 \
77x77_at_1 77x14_at_1
# A simple X
AddButtonStyle 2 Vector 2 14x14_at_1 42x42_at_1
AddButtonStyle 2 Vector 2 42x49_at_1 14x77_at_1
AddButtonStyle 2 Vector 2 77x14_at_1 49x42_at_1
AddButtonStyle 2 Vector 2 49x49_at_1 77x77_at_1
This yields BlackBox-style buttons; being able to have the vector lines
the same color as the current foreground of the border (now that we have
colorsets, that is a valid thing). Just using the shadow color or the
highlight color is sometimes not what you want; for instance, maybe you
want the vector lines to be in the same color as the foreground, which
happens to be black, but that screws up highlight/shadow for light-colored
themes.
> As I remember, we've had a few comments about not being able to
> "lift the pen off the paper" while drawing vectors, and supporting
> a background color would do that.
Pish posh; you can use AddButtonStyle to "lift the pen off the paper".
Colorsets are around, so things have background/foreground/highlight/shadow
whether you want them or not.
> Still, if you really want to go all out with buttons, using pixmaps
> gives a lot of control.
I do *not* want to go all out with buttons. I just want to be able to
specify buttons that go with the current foreground color. I do *not*
want to suggest that fvwm embed gimp inside it.
> Since pixmaps support the color "None", you get a "Background" by using
> "None".
I *know* that. I've used it.
> I've seen the references to symbolic colors in XPMs but never seen
> them used.
Download and try out ctwm. It yields, for instance, interesting raised
patterns on title bars without having to create different pixmaps for
every single color combo anyone could want.
> Other users have asked about supporting other image formats, besides
> xpm. Supporting other formats would confound this feature. For my
> own use, I'd look at further extensions as bloat. Thats not to say,
> I'm absolutely against them. I'm just trying to make the point that
> there should be a clear benefit to adding more features.
Well, yes. I don't suggest things just to suggest things. If I
didn't think there would be some benefit, I wouldn't try. Of course,
technically there's no "clear" benefit to having retracting icon titles,
button vectors, or specifying different cursors using pixmaps, so one
might as well just use wm2, hacked for certain key strokes, and be done
with it.
--
An Thi-Nguyen Le
|Let me put it this way: today is going to be a learning experience.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu May 17 2001 - 13:32:40 BST