From: Vincent Vanwaelscappel Date: Wed, 11 Oct 2023 10:27:24 +0000 (+0200) Subject: wait #6381 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=105357f718430a0fe0fb2d8f244cb7f06de66b74;p=fluidbook-toolbox.git wait #6381 @0.25 --- 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];