From bba813a78b216c84e3ff189ed978f652fe5110fc Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Wed, 14 Apr 2021 14:44:20 +0000 Subject: [PATCH] 01_FHEMWEB.pm: implement different fill and stroke colors (Forum #120303) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24251 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/01_FHEMWEB.pm | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/FHEM/01_FHEMWEB.pm b/FHEM/01_FHEMWEB.pm index 8ffbdefed..21c7adf95 100644 --- a/FHEM/01_FHEMWEB.pm +++ b/FHEM/01_FHEMWEB.pm @@ -2711,16 +2711,18 @@ FW_makeImage(@) $data =~ s/[\r\n]/ /g; $data =~ s/ *$//g; $data =~ s/ Note: if the image is referencing an SVG icon, then you can use the - @colorname suffix to color the image. E.g.:
+ @fill:stroke suffix to color the image, where fill replaces the fill + color in the SVG (if it is specified as #000000) and the optional + stroke the stroke color (if it is specified as #000000). E.g.:
- Anmerkung: Wenn das Icon ein SVG Bild ist, kann das @colorname Suffix - verwendet werden um das Icon einzufärben. Z.B.:
+ Anmerkung: Wenn das Icon ein SVG Bild ist, kann das @fill:stroke + Suffix verwendet werden um das Icon einzufärben, dabei wird in + der SVG die Füllfarbe durch das spezifizierte fill ersetzt, und + die Stiftfarbe durch das optionale stroke. + Z.B.: