Fix: Replace deprecated getBrightness with new method
New method created in is_themecore module: Uses use PrestaShop\PrestaShop\Core\Util\ColorBrightnessCalculator and adds as smarty function in SmartyHelperFunctions.php
This commit is contained in:
@ -89,7 +89,7 @@
|
||||
<td>{$state.history_date}</td>
|
||||
<td>
|
||||
<span
|
||||
class="label label-pill badge {if Tools::getBrightness($state.color) < 128}text-white{/if}"
|
||||
class="label label-pill badge {if !$state.color|is_bright}text-white{/if}"
|
||||
style="background-color:{$state.color}">
|
||||
{$state.ostate_name}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user