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:
parent
9051a3afee
commit
d55d8e29b4
@ -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"//;
|
||||
|
Loading…
x
Reference in New Issue
Block a user