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

@ -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>