]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7241 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 Feb 2025 18:07:05 +0000 (19:07 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 Feb 2025 18:07:05 +0000 (19:07 +0100)
app/Fluidbook/Compiler/Compiler.php
app/Models/FluidbookTheme.php

index f00adc55077efc92b3319dcfe04a0222f2b22fcb..9b612492b14f1067a584fd8abd5d2275500d5a1f 100644 (file)
@@ -1939,6 +1939,7 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError
         // Links Styles
         $this->lessVariables['links-color'] = Color::colorToCSS($this->themeSettings->linksColor);
         $this->lessVariables['links-opacity'] = ($this->themeSettings->linksOpacity ?? 30) . "%";
+        $this->lessVariables['links-rounded-corners'] = $this->themeSettings->linksRoundedCorners ?? 0;
         $this->lessVariables['slideshow-color'] = Color::colorToCSS($this->themeSettings->slideshowColor);
         $this->lessVariables['inlineslideshow-transition-time'] = (floatval($this->fluidbookSettings->inlineSlideshowTransitionDuration) * 1000) . 'ms';
         $this->lessVariables['slideshow-caption-size'] = $this->fluidbookSettings->slideshowCaptionSize ?: '16px';
index f8400c3a97ec9681f71877b0155ea72830f54c75..765d46fbe3bda76141dbf5726fad155281062697 100644 (file)
@@ -13,6 +13,7 @@ use App\Models\Traits\ToolboxSettings;
 use Cubist\Backpack\Magic\EntityData;
 use Cubist\Backpack\Magic\Fields\Files;
 use Cubist\Backpack\Magic\Fields\FormSeparator;
+use Cubist\Backpack\Magic\Fields\Number;
 use Cubist\Backpack\Magic\Fields\Percent;
 use Cubist\Backpack\Magic\Fields\SelectFromArray;
 use Cubist\Backpack\Magic\Fields\SelectFromModel;
@@ -322,10 +323,10 @@ class FluidbookTheme extends ToolboxModel
         ]);
         $this->addField([
             'name' => 'linksRoundedCorners',
-            'type' => Percent::class,
+            'type' => Number::class,
+            'min' => 0,
             'label' => __('Bords arrondis'),
             'default' => 0,
-            'hint' => '0 : ' . __('Bords pas arrondis') . ' // 100 : ' . __('Bords complètement arrondis'),
             'translatable' => false,
         ]);
         $this->addField([