mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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);
|
my $col = $1 if($1);
|
||||||
if($col) {
|
if($col) {
|
||||||
$col =~ s/@//;
|
$col =~ s/@//;
|
||||||
$col = "#$col" if($col =~ m/^\d+$/);
|
$col = "#$col" if($col =~ m/^([A-F0-9]{6})$/);
|
||||||
$data =~ s/fill="#000000"/fill="$col"/;
|
$data =~ s/fill="#000000"/fill="$col"/;
|
||||||
} else {
|
} else {
|
||||||
$data =~ s/fill="#000000"//;
|
$data =~ s/fill="#000000"//;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user