Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:xfwm4_theme [2020/08/19 19:27] – change section header name kevinbowen | howto:xfwm4_theme [2024/11/20 22:15] (current) – Small write up for new stretched bitmap feature in 4.20 rozniak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
====== Xfwm4 theme how-to ====== | ====== Xfwm4 theme how-to ====== | ||
+ | |||
+ | |||
+ | |||
+ | * **[[#Themes locations|Themes locations]]** | ||
+ | * **[[# | ||
+ | * **[[#Window Sidebars and bottom|Window Sidebars and bottom]]** | ||
+ | * **[[#Xfwm4 Buttons|Xfwm4 Buttons]]** | ||
+ | * **[[# | ||
+ | * **[[#Gtk Color pickup|Gtk Color pickup]]** | ||
+ | * **[[#XPM (X PixMap) format|XPM (X PixMap) format]]** | ||
+ | * **[[#Xfwm 4.2 new functionality|Xfwm 4.2 new functionality]]** | ||
+ | * **[[#List of frame and button part names|List of frame and button part names]]** | ||
+ | * **[[#Xfwm 4.20 new functionality|Xfwm 4.20 new functionality]]** | ||
+ | * **[[# | ||
+ | |||
+ | ---- | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | Xfwm4, | + | Xfwm4, |
{{ howto: | {{ howto: | ||
+ | ---- | ||
===== Themes locations ===== | ===== Themes locations ===== | ||
In Xfwm4 version 4.0, the themes are searched in the following directories: | In Xfwm4 version 4.0, the themes are searched in the following directories: | ||
Line 18: | Line 36: | ||
* System' | * System' | ||
* System' | * System' | ||
+ | |||
+ | [[|Back to Top]] | ||
+ | ---- | ||
+ | |||
===== Titlebar decorations ===== | ===== Titlebar decorations ===== | ||
As windows can be in either active ((focused)) or inactive ((unfocused)) states for which xfwm4 use pixmaps named accordingly e.g. title-1-active.xpm and title-1-inactive.xpm. | As windows can be in either active ((focused)) or inactive ((unfocused)) states for which xfwm4 use pixmaps named accordingly e.g. title-1-active.xpm and title-1-inactive.xpm. | ||
Line 29: | Line 51: | ||
Title text colour and shadow options, alignment etc are set in the themerc file (detailed in the themerc section). | Title text colour and shadow options, alignment etc are set in the themerc file (detailed in the themerc section). | ||
+ | [[|Back to Top]] | ||
+ | ---- | ||
===== Window Sidebars and bottom ===== | ===== Window Sidebars and bottom ===== | ||
Line 37: | Line 60: | ||
N.B These pixmaps also make up the mouse grab handles so keep that in mind when deciding how many pixels wide they should be (particularly the bottom-left and bottom right pixmaps which make up the main resize handles on the windows). | N.B These pixmaps also make up the mouse grab handles so keep that in mind when deciding how many pixels wide they should be (particularly the bottom-left and bottom right pixmaps which make up the main resize handles on the windows). | ||
+ | |||
+ | [[|Back to Top]] | ||
+ | ---- | ||
+ | |||
===== Xfwm4 Buttons ===== | ===== Xfwm4 Buttons ===== | ||
Line 54: | Line 81: | ||
Xfwm4 4.6 brings a new button effect of the active window called prelight. Hovering the mouse over the buttons, the picture becomes clearer. Can be used in the six active buttons. | Xfwm4 4.6 brings a new button effect of the active window called prelight. Hovering the mouse over the buttons, the picture becomes clearer. Can be used in the six active buttons. | ||
+ | |||
+ | [[|Back to Top]] | ||
+ | ---- | ||
+ | |||
===== Themerc file ===== | ===== Themerc file ===== | ||
Line 111: | Line 142: | ||
If you don't have a menu button, you can use a blank square. Or you cannot use this option. | If you don't have a menu button, you can use a blank square. Or you cannot use this option. | ||
+ | |||
+ | ==== Frame border top==== | ||
+ | XFWM Versions 4.14.1 and above can take advantage of this feature to crop the top frame border of maximized application windows. | ||
+ | |||
+ | * frame_border_top=0 //# | ||
+ | |||
+ | {{ howto: | ||
+ | |||
+ | * frame_border_top=2 //#Will crop the top 2 pixels off// | ||
+ | |||
+ | {{ howto: | ||
+ | |||
+ | |||
+ | [[|Back to Top]] | ||
+ | ---- | ||
+ | |||
===== Gtk Color pickup ==== | ===== Gtk Color pickup ==== | ||
As you have no doubt noticed when using Xfwm4' | As you have no doubt noticed when using Xfwm4' | ||
Line 142: | Line 189: | ||
To use the defined colors in the XFWM theme, the XPM files have to be edited. Since XPM files are plain text, they can be edited with your favorite text editor. | To use the defined colors in the XFWM theme, the XPM files have to be edited. Since XPM files are plain text, they can be edited with your favorite text editor. | ||
+ | |||
+ | [[|Back to Top]] | ||
+ | ---- | ||
===== XPM (X PixMap) format ===== | ===== XPM (X PixMap) format ===== | ||
Line 215: | Line 265: | ||
As a matter of fact, " | As a matter of fact, " | ||
+ | [[|Back to Top]] | ||
+ | ---- | ||
Line 233: | Line 284: | ||
* It's backward compatible with xfwm4 from Xfce 4.0, the PNG files are just ignored by xfwm4 4.0. | * It's backward compatible with xfwm4 from Xfce 4.0, the PNG files are just ignored by xfwm4 4.0. | ||
+ | [[|Back to Top]] | ||
- | + | ---- | |
- | ===== Conclusion ===== | + | |
- | I hope this small "how-to" for creating themes for xfwm4 will help you design your own themes. It would be great if you could share your themes with others on [[http:// | + | |
===== List of frame and button part names ===== | ===== List of frame and button part names ===== | ||
Line 261: | Line 311: | ||
| bottom-left-active | | bottom-left-active | ||
| left-active | | left-active | ||
- | ===== Credits | + | |
- | This how-to has been started by Drewbian (drewbian at tsn dot cc) and later modifed by Olivier Fourdan (fourdan at xfce dot org) and Renato Santos | + | ---- |
+ | |||
+ | ===== Xfwm 4.20 new functionality | ||
+ | Xfwm 4.20 introduces the ability to have bitmaps that stretch across each side of the window decorations. | ||
+ | |||
+ | Xfwm will use parts with the suffix " | ||
+ | |||
+ | ^ Original | ||
+ | | top-left-active | ||
+ | | top-active | ||
+ | | top-right-active | ||
+ | | left-active | ||
+ | | right-active | ||
+ | | bottom-left-active | ||
+ | | bottom-active | ||
+ | | bottom-right-active | bottom-right-active-stretch | | ||
+ | |||
+ | The same of course applies to the " | ||
+ | |||
+ | It is recommended you still supply a non-stretched variant of theme parts for backwards compatibility purposes. Since this is additive, supplying both non-stretched | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Conclusion ===== | ||
+ | I hope this small " | ||
+ | |||
+ | |||
+ | [[|Back to Top]] | ||
+ | ---- | ||
+ | [[: |