]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5317
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Jun 2022 16:35:26 +0000 (18:35 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Jun 2022 16:35:26 +0000 (18:35 +0200)
app/Models/FluidbookTheme.php
resources/js/theme_preview/theme_preview.js

index 15693d13b8d6315ac3d94b75224ddcd2bdf3375d..71694c99e1169bffda5b93c5b36ee28c31d204b4 100644 (file)
@@ -25,8 +25,8 @@ class FluidbookTheme extends ToolboxModel
 
     protected $_enableTrackNonDefaultValues = true;
 
-    protected $_enableRevisionsButton=false;
-    protected $_enableRevisions=true;
+    protected $_enableRevisionsButton = false;
+    protected $_enableRevisions = true;
 
     public static $updateWS2ViewOnChange = true;
     public static $updateWS2SyncViewOnChange = false;
@@ -291,6 +291,15 @@ class FluidbookTheme extends ToolboxModel
             'allows_alpha' => false,
             'translatable' => false,
         ]);
+        $this->addField([
+            'name' => 'slideshowColor',
+            'type' => 'Color',
+            'label' => __('Couleur d\'accentuation des slideshows'),
+            'default' => '',
+            'allows_empty' => '',
+            'allows_alpha' => true,
+            'translatable' => false,
+        ]);
         $this->addField([
             'name' => 'videoBackgroundColor',
             'type' => 'Color',
index 96aa85b27bb5095ab6b9062a1019928553f904a7..08d6fff50e4bce4c15580961584dce28f8ce5346 100644 (file)
@@ -23,7 +23,7 @@ const optionDefinitions = [{name: 'url', type: String}, {name: 'dest', type: Str
 
     await page.goto(options.url, {waitUntil: 'networkidle2'});
     await page.screenshot({path: options.destloader, type: 'jpeg', quality: 95});
-    await new Promise(r => setTimeout(r, 1000 * (options.delay - 1)));
+    await new Promise(r => setTimeout(r, 1000 * options.delay));
 
     // Show slider and thumbs
     await page.evaluate(() => fluidbook.slider.hover(512));