labwc-theme(5) | File Formats Manual | labwc-theme(5) |
labwc - theme files
The theme engine aims to be compatible with openbox and themes will be searched for in the following order:
When $XDG_DATA_HOME is defined, it replaces (rather than augments) $HOME/.local/share. The same is the case for $XDG_DATA_DIRS and /usr/share/.
Choosing a theme is done by editing the <name> key in the <theme> section of the rc.xml configuration file (labwc-config(5)).
A theme consists of a themerc file and optionally some titlebar icons (referred to as buttons).
Theme settings specified in themerc can be overridden by creating a 'themerc-override' file in the configuration directory, which is normally $HOME/.config/labwc/ but can be a few other locations as described in labwc-config(5).
color
justification
border.width
padding.height
titlebar.height
menu.items.padding.x
menu.items.padding.y
menu.overlap.x
menu.overlap.y
menu.width.min
menu.width.max
window.active.border.color
window.inactive.border.color
window.active.indicator.toggled-keybind.color
window.active.title.bg.color
window.inactive.title.bg.color
window.active.label.text.color
window.inactive.label.text.color
window.label.text.justify
window.active.button.unpressed.image.color
window.inactive.button.unpressed.image.color
Note: The button elements (i.e. window.[in]active.button.*) support defining different types of buttons individually by inserting the type ("menu", "iconify", "max" and "close") after the button node. For example: window.active.button.iconify.unpressed.image.color This syntax is not documented on the openbox.org wiki, but is supported by openbox and is used by many popular themes. For the sake of brevity, these elements are not listed here, but are supported.
menu.items.bg.color
menu.items.text.color
menu.items.active.bg.color
menu.items.active.text.color
menu.separator.width
menu.separator.padding.width
menu.separator.padding.height
menu.separator.color
osd.bg.color
osd.border.color
osd.border.width
osd.label.text.color
osd.window-switcher.width
osd.window-switcher.padding
osd.window-switcher.item.padding.x
osd.window-switcher.item.padding.y
osd.window-switcher.item.active.border.width
osd.workspace-switcher.boxes.width
osd.workspace-switcher.boxes.height
border.color
The images used for the titlebar icons are referred to as buttons.
The image formats listed below are supported. They are listed in order of precedence, where the first format in the list is searched for first.
By default, buttons are 1-bit xbm (X Bitmaps). These are masks where 0=clear and 1=colored. The xbm image files are placed in the same directory as the themerc file within a particular theme. The following xbm buttons are supported:
Additional icons can be defined to be shown when the mouse pointer is hovering over the button in question:
One advantage of xbm buttons over other formats is that they change color based on the theme. Other formats use the suffices "-active" and "-inactive" to align with the respective titlebar colors. For example: "close-active.png"
For compatibility reasons, the following alternative names are supported for xbm files:
When using png or svg icons, for a full theme experience all of the following icons should be added:
The handle is the window edge decoration at the bottom of the window.
labwc(1), labwc-config(5), labwc-actions(5)
2024-04-01 |