From a3e4bce3860ae9962b4d3254cbb9473d34096c8e Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 11 Oct 2019 22:26:32 +0200 Subject: [PATCH] Document color parsing (fixes pwmt/zathura#113) --- doc/man/zathurarc.5.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/man/zathurarc.5.rst b/doc/man/zathurarc.5.rst index dbc9eb9..c0b0bb3 100644 --- a/doc/man/zathurarc.5.rst +++ b/doc/man/zathurarc.5.rst @@ -54,14 +54,20 @@ can be used set option5 "hello world" -If you want to use ``color codes`` for some options, make sure to quote them -accordingly or to escape the hash symbol. +For colors, zathura supports HTML color codes and CSS3-style ``rgb(r,g,b)`` and ``rgba(r,g,b,a)`` +values. If you want to use color codes for some options, make sure to quote them accordingly or +to escape the hash symbol. :: set default-fg "#CCBBCC" set default-fg \#CCBBCC + +For ``rgba``, note that it parses the color components as integers between 0 and 255 and the alpha +component as float between 0 and 1. + + include - Including another config file --------------------------------------- This commands allows one to include other configuration files. If a relative