mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 18:56:03 +00:00
55_InfoPanel.pm: remove smartmatch issues
git-svn-id: https://svn.fhem.de/fhem/trunk@28757 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b3ffd34d24
commit
33b1c7a7f2
@ -1219,9 +1219,9 @@ sub btIP_evalLayout {
|
||||
$params{textdecoration} = "none";
|
||||
foreach my $s (@args) {
|
||||
if($s ne 'clear') {
|
||||
$params{fontstyle} = "$s " if($s ~~ @style);
|
||||
$params{fontweight} = "$s " if($s ~~ @weight);
|
||||
$params{textdecoration} = "$s " if($s ~~ @deco);
|
||||
$params{fontstyle} = "$s " if (grep($s,@style));
|
||||
$params{fontweight} = "$s " if (grep($s,@weight));
|
||||
$params{textdecoration} = "$s " if (grep($s,@deco));
|
||||
}
|
||||
}
|
||||
} elsif ($cmd eq "ticker") {
|
||||
@ -1239,14 +1239,14 @@ sub btIP_evalLayout {
|
||||
$svg .= btIP_itemTime($id,$x,$y,%params);
|
||||
} elsif ($cmd eq "thalign"){
|
||||
my $d = AnalyzePerlCommand(undef, $def);
|
||||
if($d ~~ @valid_halign) {
|
||||
if (grep($d,@valid_halign)) {
|
||||
$params{thalign}= $d;
|
||||
} else {
|
||||
Log3($name, 2, "InfoPanel $name: Illegal horizontal alignment $d");
|
||||
}
|
||||
} elsif ($cmd eq "tvalign"){
|
||||
my $d = AnalyzePerlCommand(undef, $def);
|
||||
if($d ~~ @valid_valign) {
|
||||
if(grep($d,@valid_valign)) {
|
||||
$params{tvalign}= $d;
|
||||
} else {
|
||||
Log3($name, 2, "InfoPanel $name: Illegal vertical alignment $d");
|
||||
|
Loading…
x
Reference in New Issue
Block a user