mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-09 19:54:19 +00:00
01_FHEMWEB.pm: add alternative @ for stroke color separater (Forum #120303)
git-svn-id: https://svn.fhem.de/fhem/trunk@25368 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
32893986ea
commit
773740f876
@ -2723,7 +2723,7 @@ FW_makeImage(@)
|
||||
$data =~ s/[\r\n]/ /g;
|
||||
$data =~ s/ *$//g;
|
||||
$data =~ s/<svg/<svg class="$class" data-txt="$txt"/; #52967
|
||||
if($name =~ m/@([^:]*)(:(.*))?$/) {
|
||||
if($name =~ m/@([^:@]*)([:@](.*))?$/) {
|
||||
my ($fill, $stroke) = ($1, $3);
|
||||
if($fill ne "") {
|
||||
$fill = "#$fill" if($fill =~ m/^([A-F0-9]{6})$/);
|
||||
@ -3811,8 +3811,9 @@ FW_log($$)
|
||||
off:control_building_filled:278727
|
||||
</ul>
|
||||
If the cmd is noFhemwebLink, then no HTML-link will be generated, i.e.
|
||||
nothing will happen when clicking on the icon or text.
|
||||
|
||||
nothing will happen when clicking on the icon or text.<br>
|
||||
Note: if you need stroke coloring in the devStateIcon, you have to use
|
||||
the alternative @fill@stroke syntax.
|
||||
</ul>
|
||||
Second form:<br>
|
||||
<ul>
|
||||
@ -4583,6 +4584,9 @@ FW_log($$)
|
||||
</ul>
|
||||
Falls cmd noFhemwebLink ist, dann wird kein HTML-Link generiert, d.h.
|
||||
es passiert nichts, wenn man auf das Icon/Text klickt.
|
||||
Achtung: falls im devStateIcons das Ändern der Stiftfarbe
|
||||
benötigt wird, dann ist die alternative @fill@stroke Syntax zu
|
||||
verwenden.
|
||||
</ul>
|
||||
Zweite Variante:<br>
|
||||
<ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user