// 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';
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;
]);
$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([