From db3833d9c51f851f280efe191be2ca0e663c1b7e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 30 Jan 2026 11:55:34 +0100 Subject: [PATCH] wip #7952 @1 --- app/Models/FluidbookTheme.php | 30 +++++++++++++++++++++++ app/Models/Traits/PublicationSettings.php | 1 + 2 files changed, 31 insertions(+) diff --git a/app/Models/FluidbookTheme.php b/app/Models/FluidbookTheme.php index 2c56dd7d4..064fa1f8b 100644 --- a/app/Models/FluidbookTheme.php +++ b/app/Models/FluidbookTheme.php @@ -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', diff --git a/app/Models/Traits/PublicationSettings.php b/app/Models/Traits/PublicationSettings.php index 76c6d4905..308668ba2 100644 --- a/app/Models/Traits/PublicationSettings.php +++ b/app/Models/Traits/PublicationSettings.php @@ -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'), [ -- 2.39.5