Re: FVWM: FvwmButtons: ActiveColorset

From: Scott Smedley <ss_at_aaoepp.aao.gov.au>
Date: Sun, 27 Feb 2005 19:01:15 +1100

> > Now I want to change the colorset, when i hover the mouse over this
> > location. ActiveColorset works great, but I don't want this on _every_
> > button in my panel.
>
> This feature is not currently implemented.

This feature is now implemented (in CVS version of FVWM).

> It is trivial to add - just need a new flag (IgnoreActiveColorset?)

I choose to add 2 new options for _individual_ buttons:
 * PressColorset
 * ActiveColorset

These options (when specified for an individual button) take precedence
over any global option setting (of the same name).

To get the effect you describe above, use a Transparent colorset.

ie.
Colorset 21 fg darkorange, bg green
Colorset 22 Transparent
*MyButtonbar: : ActiveColorset 21
...
*MyButtonbar(Title Button1, Action Echo button1)
*MyButtonbar(Title Button2, Action Echo butto21)
*MyButtonbar(Title TestButton, ActiveColorset 22, Action Echo testing)

This feature is flexible enough to allow you to have a different
highlight color (ActiveColorset) for each button. (if you were mad
enough to desire such an effect!)

> only catch is that we have run out of flags!

The 'flags' field was converted from a 32-bit field to a proper C
struct so now we can add as many new flags as we like.

SCoTT. :)
--
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 Sun Feb 27 2005 - 02:02:29 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST