mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
changed webcmd alignment and default colors
git-svn-id: https://svn.fhem.de/fhem/trunk@3333 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
84087af951
commit
d587102e67
@ -121,17 +121,17 @@ HUEDevice_colorpickerFn($$$)
|
||||
$cmd = "" if($cmd eq "state");
|
||||
if( $args[1] ) {
|
||||
my $c = "\"$FW_ME?cmd=set $d $cmd$srf\"";
|
||||
return "<td colspan='2'>".
|
||||
return '<td align="center">'.
|
||||
'<a href='. $c .'>'.
|
||||
'<div style="width:32px;height:19px;'.
|
||||
'border:1px solid #fff;border-radius:8px;background-color:#'. $args[1] .';"></div>'.
|
||||
'</a>';
|
||||
"</td>";
|
||||
'</a>'.
|
||||
'</td>';
|
||||
} else {
|
||||
my $c = "\"$FW_ME?cmd=set $d $cmd %$srf\"";
|
||||
return "<td colspan='2'>".
|
||||
return '<td align="center">'.
|
||||
"<input class='color {pickerMode:'$mode'}' value='#$cv' onchange='setColor(this,\"$mode\",$c)'\"/>".
|
||||
"</td>";
|
||||
'</td>';
|
||||
}
|
||||
}
|
||||
|
||||
@ -541,7 +541,8 @@ HUEDevice_GetUpdate($)
|
||||
$attr{$name}{devStateIcon} = '{(HUEDevice_devStateIcon($name),"toggle")}' if( !defined( $attr{$name}{devStateIcon} ) );
|
||||
|
||||
if( !defined( $attr{$name}{webCmd} ) ) {
|
||||
$attr{$name}{webCmd} = 'rgb:rgb ff0000:rgb C8FF12:rgb 0000ff:toggle:on:off' if( $attr{$name}{subType} eq "colordimmer" );
|
||||
$attr{$name}{webCmd} = 'rgb:rgb ff0000:rgb 00ff00:rgb 0000ff:toggle:on:off' if( $attr{$name}{subType} eq "colordimmer" );
|
||||
$attr{$name}{webCmd} = 'rgb:rgb ff0000:rgb C8FF12:rgb 0000ff:toggle:on:off' if( AttrVal($name, "model", "") eq "LCT001" );
|
||||
$attr{$name}{webCmd} = 'pct:toggle:on:off' if( $attr{$name}{subType} eq "dimmer" );
|
||||
$attr{$name}{webCmd} = 'toggle:on:off' if( $attr{$name}{subType} eq "switch" );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user