protected function writeAnimations()
{
$colors = [
- self::BUTTON_TEXT_COLOR => $this->theme->getButtonTextColor(),
- self::TEXT_COLOR => $this->theme->getTextsColor(),
self::OK_COLOR => $this->theme->okColor,
self::CONFETTI_COLOR => $this->theme->okColor,
self::NOK_COLOR => $this->theme->nokColor,
+ self::BUTTON_TEXT_COLOR => $this->theme->getButtonTextColor(),
+ self::TEXT_COLOR => $this->theme->getTextsColor(),
];
$animationReplace = [];
$animationPregReplace = [];
// Replace colors
foreach ($colors as $from => $to) {
- $f = (new Color($from))->toLottie(5, true);
+ $f = (new Color($from))->toLottie(3, true);
$t = (new Color($to))->toLottie();
$animationPregReplace['/"c":{"a":0,"k":\[' . $f[0] . ',' . $f[1] . ',' . $f[2] . '/'] = '"c":{"a":0,"k":[' . $t[0] . ',' . $t[1] . ',' . $t[2];
$animationPregReplace['/"fc":\[' . $f[0] . ',' . $f[1] . ',' . $f[2] . '/'] = '"fc":[' . $t[0] . ',' . $t[1] . ',' . $t[2];