]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6365 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 11:01:46 +0000 (13:01 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 11:01:46 +0000 (13:01 +0200)
app/Models/QuizTheme.php

index 02ce2db9cac1adf48593b482372fd65b2ff49dd9..3cc2a3098fbfbade2ef68cc2290506c46ea87b59 100644 (file)
@@ -141,12 +141,12 @@ class QuizTheme extends ToolboxModel
         $this->addField('outroImageMobile', FluidbookThemeImage::class, __('Mobile'), ['hint' => __('Taille recommandée : :size', ['size' => '390 x 844px']), 'when' => ['outroCustom' => 1]]);
         //$this->addField('', FormSeparator::class, '');
         $this->addField('outroSuccessAnimation', Hidden::class, __('Animation de réussite'), ['hint' => __('390 x 390px')]);
-        $this->addField('outroFailAnimation', Hidden::clKass, __('Animation d\'échec'), ['hint' => __('390 x 390px')]);
+        $this->addField('outroFailAnimation', Hidden::class, __('Animation d\'échec'), ['hint' => __('390 x 390px')]);
     }
 
     public function getTextsColor()
     {
-        if ($this->textsColor == 'auto' || !$this->textsColor) {
+        if ($this->textColor == 'auto' || !$this->textColor) {
             // If auto mode, check between black and white which have the biggest distance (i.e. most contrast) with neutralColor
             $neutral = new \Cubist\Util\Graphics\Color($this->neutralColor);
             $black = new \Cubist\Util\Graphics\Color('#000000');
@@ -159,7 +159,7 @@ class QuizTheme extends ToolboxModel
                 return '#000000';
             }
         }
-        return $this->textsColor;
+        return $this->textColor;
     }
 
     /**