On 27 Jun 2002 13:11:49 +0200, Uwe Pross wrote: > > On June 27, 2002 at 10:05 +0000, Mikhael Goikhman wrote: > > > > > I would like to do same with other styles like Foreground, Background, > > > Hilight*, ... > > > > Please use colorsets instead. Then you just change colorset dynamically > > without a need to change any Style. > > I use colorsets. The problem with colorsets is that you need to define > them before you can use them. For example if you want one particular > window to appear in red color and another one to appear in green > colorsets might be not that suitable, since you need one colorset for > each color you want to use.
I see. Still I don't think colorsets are less suitable here than ForeColor, BackColor and HilightFore, HilightBack. For each color you want to use for windows (green, red) define 2 colorsets for inactive and active window once. Then just switch window colorsets: # define 3 color schemes, red, green, blue Colorset 50 fg black, bg rgb:d0/00/00, hi rgb:ff/00/00, sh rgb:a0/00/00 Colorset 51 fg white, bg rgb:00/60/00, hi rgb:00/30/00, sh rgb:a0/90/00 Colorset 52 fg white, bg rgb:00/00/40, hi rgb:00/00/20, sh rgb:a0/00/80 AddToMenu windowops + "Use red color scheme" Style $n Colorset 50, HilightColorset 60 + "Use green color scheme" Style $n Colorset 51, HilightColorset 61 + "Use blue color scheme" Style $n Colorset 52, HilightColorset 62 Then you may even add something like this if you really want: + "Make red color scheme lighter" Func1ChangingColorsets50And60 + "Make red color scheme darker" Func2ChangingColorsets50And60 + "Make red color scheme more cyan" ... :-) This changes colors of all windows that currently use red color scheme. For versions < 2.4.8 the syntax is "*FvwmTheme: Colorset ..." of course. Regards, Mikhael. -- 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 [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
