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:
2025-11-19 17:14:56 +01:00
parent 6849b8eefd
commit ae299283a7
4 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@
<td class="hidden-md-down align-middle">{$order.details.payment}</td>
<td class="align-middle">
<span
class="label label-pill badge {if Tools::getBrightness($order.history.current.color) < 128}text-white{/if}"
class="label label-pill badge {if !$order.history.current.color|is_bright}text-white{/if}"
style="background-color:{$order.history.current.color}"
>
{$order.history.current.ostate_name}