Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -39,15 +39,21 @@ class _Hextorgb
|
||||
if( $data[0] !== '$' ){
|
||||
$data = "'" . $data . "'";
|
||||
}
|
||||
|
||||
return '\IPS\Output\Plugin\Hextorgb::convertToRGB(' . $data . ', ' . ( isset( $options['opacity'] ) ? $options['opacity'] : '1' ) . ')';
|
||||
|
||||
$opacity = 1;
|
||||
if( !empty( $options['opacity'] ) )
|
||||
{
|
||||
$opacity = $options['opacity'][0] !== '$' ? "'" . $options['opacity'] . "'" : $options['opacity'];
|
||||
}
|
||||
|
||||
return "\IPS\Output\Plugin\Hextorgb::convertToRGB({$data}, {$opacity})";
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert Hex value to RGB
|
||||
*
|
||||
* @param string $data Hex color code
|
||||
* @param float $opacity Opacity (0-1)
|
||||
* @param string $opacity Opacity (0-1) or Setting/Theme Setting name
|
||||
* @return string
|
||||
*/
|
||||
public static function convertToRGB( $data, $opacity )
|
||||
|
||||
Reference in new issue
Block a user