From 105357f718430a0fe0fb2d8f244cb7f06de66b74 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 11 Oct 2023 12:27:24 +0200 Subject: [PATCH] wait #6381 @0.25 --- app/Elearning/QuizCompiler/Animations.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Elearning/QuizCompiler/Animations.php b/app/Elearning/QuizCompiler/Animations.php index 67ac059d0..733bcc6e0 100644 --- a/app/Elearning/QuizCompiler/Animations.php +++ b/app/Elearning/QuizCompiler/Animations.php @@ -26,18 +26,18 @@ trait Animations 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]; -- 2.39.5