From 9ad56735ea24b223f2056da39202ce9ec40c4aaa Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 13 Dec 2016 18:20:09 +0100 Subject: Add properties description to theme format description --- doc/themer.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/themer.md b/doc/themer.md index 8440b8a5..ce97ceb8 100644 --- a/doc/themer.md +++ b/doc/themer.md @@ -107,3 +107,23 @@ The file is structured as follows ``` The global properties has to be at the top of the file, the rest can freeĺy be mixed. + +Each property is constructed like: +``` +{key} : {value} ; +``` +Key is a simple ascii string. +Separated from value by a colon ':'; +Value supports the following formats: + + * string: `"{string}"` + * integer: `[0-9]+` + * double: `[0-9]+\.[0-9]` + * boolean: `true|false` + * color: + * `#[0-9a-fA-F]{6}`: hexidecimal rgb color. + * `#[0-9a-fA-F]{8}`: hexidecimal argb color. + * `argb:[0-0a-fA-F]{8}`: Old **rofi** argb color style. + * `rgba\([0-9]{1,3},[0-9]{1,3}, [0-9]{1,3}, {double}\)`: css style rgba color. + * `rgb\([0-9]{1,3},[0-9]{1,3}, [0-9]{1,3}\)`: css style rgb color. +Each property is closed by a semi-colon ';'; -- cgit v1.2.3