]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6381 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 11 Oct 2023 10:27:24 +0000 (12:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 11 Oct 2023 10:27:24 +0000 (12:27 +0200)
app/Elearning/QuizCompiler/Animations.php

index 67ac059d02fff7e749fa76bfbb7e72ba7c4d9034..733bcc6e0e15af42afebb015307bdf7174d76f12 100644 (file)
@@ -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];