xfwm4 theme

Miguel Guedes miguel.a.guedes at gmail.com
Sat Mar 23 14:02:51 CET 2013


Many thanks for the comprehensive answer, Peter!

Will use the contents of your reply to update/extend the XFCE wiki page
on XFWM4 theming.


On Thu, 2013-03-21 at 17:21 +0100, Peter de Ridder wrote:
> On Thu, Mar 21, 2013 at 12:46 PM, Miguel Guedes
> <miguel.a.guedes at gmail.com> wrote:
> > It seems as though if in a XPM pixmap in a themes' xfwm4 directory one
> > appends the string "s active_color_2" the color preceding it is ignored.
> >
> > So, the following,
> >
> > "@      c #cecece s active_color_2",
> >
> >  would result in whatever color referenced by 'active_color_2' taking
> > precedence over #cecece. (BTW, what does the 's' before 'active_color_2'
> > stand for? Set? Are there others?)
> 
> s stands for symbolic [1]
> 
> >
> > I found on XFCE's wiki [0] that "it is possible to make themes “pick-up”
> > gtk theme colours." My question, then, is what does active_color_2 refer
> > to in the active GTK's theme? (assuming GTK2 is being used)
> 
> Xfwm takes the colors from the GTK2 theme matching widget "xfwm" [2]
> 
> >
> > Incidentally, does anyone know what each of the following correspond to
> > in GTK?
> 
> These colors come from the GtkStyle [3] matching widget "xfwm".
> fg and bg can be set in the GTK2 theme. light, dark and mid are
> calculated by GtkStyle.
> 
> active_text_color             fg      selected
> inactive_text_color           fg      insensitive
> active_text_shadow_color      dark    selected
> inactive_text_shadow_color    dark    insensitive
> active_border_color           fg      normal
> inactive_border_color         fg      normal
> active_color_1                bg      selected
> active_hilight_1              light   selected
> active_shadow_1               dark    selected
> active_mid_1                  mid     selected
> active_color_2                bg      normal
> active_hilight_2              light   normal
> active_shadow_2               dark    normal
> active_mid_2                  mid     normal
> inactive_color_1              bg      insensitive
> inactive_hilight_1            light   insensitive
> inactive_shadow_1             dark    insensitive
> inactive_mid_1                mid     insensitive
> inactive_color_2              bg      normal
> inactive_hilight_2            light   normal
> inactive_shadow_2             dark    normal
> inactive_mid_2                mid     normal
> 
> >
> >
> > [0] http://wiki.xfce.org/howto/xfwm4_theme
> >
> 
> Regards,
> Peter
> 
> [1] https://en.wikipedia.org/wiki/X_PixMap#XPM3
> [2] http://git.xfce.org/xfce/gtk-xfce-engine/tree/themes/xfce/gtk-2.0/gtkrc#n395
> [3] http://www.gtk.org/api/2.6/gtk/GtkStyle.html#GtkStyle-struct
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce
> http://www.xfce.org

-- 
Miguel



More information about the Xfce mailing list