2021-03-05 22:14:02 +00:00
|
|
|
labwc-theme(5)
|
|
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
|
|
labwc - Theme specification
|
|
|
|
|
|
|
|
|
|
# THEME
|
|
|
|
|
|
|
|
|
|
The theme engine aims to be compatible with openbox and themes will be
|
|
|
|
|
searched for in the following order:
|
|
|
|
|
|
|
|
|
|
- ${XDG_DATA_HOME:-$HOME/.local/share}/themes/<theme-name>/openbox-3/
|
|
|
|
|
- $HOME/.themes/<theme-name>/openbox-3/
|
|
|
|
|
- /usr/share/themes/<theme-name>/openbox-3/
|
|
|
|
|
- /usr/local/share/themes/<theme-name>/openbox-3/
|
|
|
|
|
- /opt/share/themes/<theme-name>/openbox-3/
|
|
|
|
|
|
|
|
|
|
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 xbm icons.
|
|
|
|
|
|
|
|
|
|
# DATA TYPES
|
|
|
|
|
|
|
|
|
|
*color RGB values*
|
|
|
|
|
Colors can be specified by hexadecimal RGB values in the format #rrggbb.
|
|
|
|
|
Other formats will be supported later for better openbox theme
|
|
|
|
|
compatibility.
|
|
|
|
|
|
2021-10-17 20:52:29 +01:00
|
|
|
*justification*
|
|
|
|
|
Justification determines the horizontal alignment of text. Valid options
|
|
|
|
|
are Left, Center and Right.
|
|
|
|
|
|
2021-03-05 22:14:02 +00:00
|
|
|
# THEME ELEMENTS
|
|
|
|
|
|
2021-03-27 21:09:45 +00:00
|
|
|
*border.width*
|
|
|
|
|
Line width (integer) of border border drawn around window frames.
|
|
|
|
|
Default is 1.
|
|
|
|
|
|
2021-04-10 18:40:43 +01:00
|
|
|
*window.active.border.color*
|
|
|
|
|
Border color of active window
|
|
|
|
|
|
2021-03-05 22:14:02 +00:00
|
|
|
*window.active.title.bg.color*
|
2021-10-15 21:35:41 +01:00
|
|
|
Background color for the focussed window's titlebar
|
2021-03-05 22:14:02 +00:00
|
|
|
|
|
|
|
|
*window.inactive.title.bg.color*
|
2021-10-15 21:35:41 +01:00
|
|
|
Background color for non-focussed windows' titlebars
|
|
|
|
|
|
|
|
|
|
*window.active.label.text.color*
|
|
|
|
|
Text color for the focussed window's titlebar
|
|
|
|
|
|
|
|
|
|
*window.inactive.label.text.color*
|
|
|
|
|
Text color non-focussed windows' titlebars
|
2021-03-05 22:14:02 +00:00
|
|
|
|
2021-10-17 20:52:29 +01:00
|
|
|
*window.label.text.justify*
|
|
|
|
|
Specifies how window titles are aligned in the titlebar for both
|
|
|
|
|
focused and unfocused windows. Type justification. Default Left.
|
|
|
|
|
|
2021-03-05 22:14:02 +00:00
|
|
|
*window.active.button.unpressed.image.color*
|
|
|
|
|
Color of the images in titlebar buttons in their default, unpressed,
|
|
|
|
|
state. This element is for the focused window.
|
|
|
|
|
|
|
|
|
|
*window.inactive.button.unpressed.image.color*
|
|
|
|
|
Color of the images in titlebar buttons in their default, unpressed,
|
|
|
|
|
state. This element is for non-focused windows.
|
|
|
|
|
|
2021-08-22 19:11:54 +01:00
|
|
|
Note: The button elements (i.e. window.[in]active.button.\*) support defining
|
|
|
|
|
different types of buttons individually by inserting the type ("iconify", "max"
|
|
|
|
|
and "close") after the button node. For example:
|
|
|
|
|
window.active.button.iconify.unpressed.image.color
|
|
|
|
|
This syntax is not 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.
|
|
|
|
|
|
2021-03-05 22:14:02 +00:00
|
|
|
*menu.items.bg.color*
|
|
|
|
|
Background color of inactive menu items
|
|
|
|
|
|
|
|
|
|
*menu.items.text.color*
|
|
|
|
|
Text color of inactive menu item
|
|
|
|
|
|
|
|
|
|
*menu.items.active.bg.color*
|
|
|
|
|
Background color of active menu items
|
|
|
|
|
|
|
|
|
|
*menu.items.active.text.color*
|
|
|
|
|
Text color of active menu item
|
|
|
|
|
|
2021-10-13 21:29:32 +01:00
|
|
|
*osd.bg.color*
|
|
|
|
|
Background color of on-screen-display
|
|
|
|
|
|
|
|
|
|
*osd.label.text.color*
|
|
|
|
|
Text color of on-screen-display
|
|
|
|
|
|
2021-09-24 21:26:31 +01:00
|
|
|
*border.color*
|
|
|
|
|
Set all border colors. This is obsolete, but supported for backward
|
|
|
|
|
compatibility as some themes still contain it.
|
|
|
|
|
|
2021-08-22 19:11:54 +01:00
|
|
|
# BUTTONS
|
|
|
|
|
|
|
|
|
|
The images used for the titlebar 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 within your theme as the themerc file. Here are all the possible xbm
|
|
|
|
|
files looked for:
|
|
|
|
|
|
|
|
|
|
- max.xbm
|
|
|
|
|
- iconify.xbm
|
|
|
|
|
- close.xbm
|
|
|
|
|
|
|
|
|
|
More will be supported later.
|
|
|
|
|
|
2021-03-05 22:14:02 +00:00
|
|
|
# DEFINITIONS
|
|
|
|
|
|
|
|
|
|
The handle is the window edge decoration at the bottom of the window.
|
|
|
|
|
|
|
|
|
|
# DERIVED DIMENSIONS
|
|
|
|
|
|
|
|
|
|
The window title bar height is equal to the vertical font extents of the title.
|
|
|
|
|
Padding will be added to this later.
|
|
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
|
|
labwc(1), labwc-config(5), labwc-actions(5)
|