2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

Color for icon can be a hex 6-digit number

git-svn-id: https://svn.fhem.de/fhem/trunk@3306 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-06-19 06:34:21 +00:00
parent 9051a3afee
commit d55d8e29b4

View File

@ -2050,7 +2050,7 @@ FW_makeImage(@)
my $col = $1 if($1);
if($col) {
$col =~ s/@//;
$col = "#$col" if($col =~ m/^\d+$/);
$col = "#$col" if($col =~ m/^([A-F0-9]{6})$/);
$data =~ s/fill="#000000"/fill="$col"/;
} else {
$data =~ s/fill="#000000"//;