Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
xfce:xfce4-panel:theming [2012/01/04 10:09] – created nickxfce:xfce4-panel:theming [2019/04/12 22:38] – [Classes] blueberrybrownie
Line 1: Line 1:
 ====== Theming ====== ====== Theming ======
 +
 +<note warning>This applies only to GTK 2 versions of Xfce Panel, and doesn't apply to GTK 3.</note>
  
 Besize the appearance settings in the panel preferences, there are also a couple of classes you can style through the ''.gtkrc-2.0'' file. Below we'll summarize the global classes. Some plugins also have gtkrc style properties for specific settings, you can find those in the manual page of the specific plugin. Besize the appearance settings in the panel preferences, there are also a couple of classes you can style through the ''.gtkrc-2.0'' file. Below we'll summarize the global classes. Some plugins also have gtkrc style properties for specific settings, you can find those in the manual page of the specific plugin.
  
 ===== Classes ===== ===== Classes =====
-? XfcePanelWindow 
-! The normal panel window. 
-? XfcePanelWindowHidden 
-! Class of the hidden panel window. 
-?XfcePanelWindowExternal 
-! The class of the external window used for the 4.6 plugins. 
-? XfcePanelWindowWrapper 
-! The class of the window used for external plugins running in the wrapper application. 
  
 +===== XfcePanelWindow =====
 +The normal panel window.
 +
 +<file txt .gtkrc-2.0>
 +style "xfce-panel-window-style"
 +{
 +  # Time in miliseconds before the panel will unhide on an enter event
 +  XfcePanelWindow::popup-delay = 225
 +
 +  # Time in miliseconds before the panel will hide on a leave event
 +  XfcePanelWindow::popdown-delay = 350
 +
 +  # Size of autohide window in pixels
 +  XfcePanelWindow::autohide-size = 3
 +}
 +class "XfcePanelWindow" style "xfce-panel-window-style"
 +</file>
 +
 +===== XfcePanelWindowHidden =====
 +
 +Class of the hidden panel window.
 +
 +===== XfcePanelWindowExternal =====
 +
 +The class of the external window used for the 4.6 plugins.
 +
 +===== XfcePanelWindowWrapper =====
 +
 +The class of the window used for external plugins running in the wrapper application.
 +
 +===== XfcePanelImage =====
 +
 +Class of the images used on most of the panel plugins.
 +
 +<file txt .gtkrc-2.0>
 +style "xfce-panel-image-style"
 +{
 +  # Fix the panel images to a default gtk icon size, is only works for
 +  # images below 32 pixels. You can for example use this when you have
 +  # fuzzy launcher icons.
 +  XfcePanelImage::force-gtk-icon-sizes = true
 +}
 +class "XfcePanelImage" style "xfce-panel-image-style"
 +</file>