]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7952 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 30 Jan 2026 10:55:34 +0000 (11:55 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 30 Jan 2026 10:55:34 +0000 (11:55 +0100)
app/Models/FluidbookTheme.php
app/Models/Traits/PublicationSettings.php

index 2c56dd7d482a1238089f57a5a7d5d4d54f36abe1..064fa1f8bd96fe38b89cace9a77624cbeb3556ec 100644 (file)
@@ -592,6 +592,36 @@ class FluidbookTheme extends ToolboxModel
             'hint' => __('Image PNG de 256x256') . ', ' . __('pas de transparence'),
             'translatable' => false,
         ]);
+
+        $this->addField([
+            'name' => 'section_search',
+            'type' => 'FormSection',
+            'label' => __('Moteur de recherche'),
+        ]);
+
+        $this->addField([
+            'name' => 'searchFieldColor',
+            'type' => 'Color',
+            'label' => __('Couleur du texte du champ flottant'),
+            'hint' => __('Laisser vide pour utiliser les couleurs des menus'),
+            'default' => '',
+            'allows_alpha' => false,
+            'allows_empty' => true,
+            'translatable' => false,
+        ]);
+
+        $this->addField([
+            'name' => 'searchFieldBackColor',
+            'type' => 'Color',
+            'label' => __('Couleur de fond du champ flottant'),
+            'hint' => __('Laisser vide pour utiliser les couleurs des menus'),
+            'default' => '',
+            'allows_alpha' => false,
+            'allows_empty' => true,
+            'translatable' => false,
+        ]);
+
+
         $this->addField([
             'name' => 'section_loader',
             'type' => 'FormSection',
index 76c6d49055d9d03558f80d9b067bea4fdc9eae90..308668ba2b094a69a94ec33b58f63d65292cf558 100644 (file)
@@ -745,6 +745,7 @@ trait PublicationSettings
             'options' => ['standard' => __('Standard'), 'robust' => __('Robuste')],
             'default' => 'standard',
         ]);
+        $this->_addSettingField('search_field', SelectFromArray::class, $this->__('Position du champ de recherche'), ['default' => 'burger', 'options' => ['burger' => __('dans le burger menu'), 'float' => __('flottant')]]);
 
         $this->_addSettingField('', FormSeparator::class);
         $this->_addSettingField('ignoreWordLimit', Integer::class, $this->__('Ignorer les mots de moins de X caractères'), [