From db7c72ef39ebb5f575e1956a73b68f2a40b0f2e2 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Mon, 23 Jun 2025 20:01:13 +0100 Subject: [PATCH] labwc-theme(5): document x11-color-names --- docs/labwc-theme.5.scd | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/labwc-theme.5.scd b/docs/labwc-theme.5.scd index b9eb30d5..fd21edd8 100644 --- a/docs/labwc-theme.5.scd +++ b/docs/labwc-theme.5.scd @@ -37,7 +37,17 @@ labwc-config(5). # DATA TYPES *color* - Colors can be specified by either of the following: + Colors can be specified by name or hexadecimal Red-Green-Blue (RGB) + value: + + *color name* refers to "X11 color name", for example: 'white', 'grey40', + 'pink' and 'peach puff'. More information can be found here: + - http://en.wikipedia.org/wiki/Web_colors#X11_color_names + - http://en.wikipedia.org/wiki/X11_color_names + - https://github.com/labwc/labwc/blob/master/src/common/rgb.txt + + *RGB value* + - #rrggbb (hexadecimal RGB values) - #rrggbb aaa (same but with decimal alpha value percentage) - #rrggbbaa (same but with inline alpha value in hex encoding)