From: vincent@cubedesigners.com Date: Thu, 8 Jul 2021 15:52:53 +0000 (+0000) Subject: wait #4571 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=12f21a7ddc67031cab6d2a649075c011f2bf00a8;p=cubeextranet.git wait #4571 @0.5 --- diff --git a/inc/ws/Metier/class.ws.theme.parametres.php b/inc/ws/Metier/class.ws.theme.parametres.php index 6a6f64e27..41b9898f6 100644 --- a/inc/ws/Metier/class.ws.theme.parametres.php +++ b/inc/ws/Metier/class.ws.theme.parametres.php @@ -150,7 +150,7 @@ class wsThemeParametres extends wsParametres 'label' => __("Couleur de l'étoile activée")); $this->forms['book'] = array('label' => __('Personnalisation de la publication'), - 'fieldsnames' => array('interfaceFont','interfaceFontUppercase','|','pageReflection', 'shadeAlpha', + 'fieldsnames' => array('interfaceFont', 'interfaceFontUppercase', '|', 'pageReflection', 'shadeAlpha', '|', 'usePageEdges', 'pageEdgeOpacity', 'pageEdgeLeftOffset', 'pageEdgeRightOffset', 'pageEdgeColor', 'pageEdgeThickness', '|', 'bookShadeColor', '|', 'displayPageNumber', 'colorPageNumber', @@ -279,13 +279,15 @@ class wsThemeParametres extends wsParametres /* Pages bar */ $this->fields['pagesBar'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Afficher la barre d'accès rapide aux pages")); + $this->fields['sliderBackground'] = ['type' => 'couleurAlpha', 'default' => '1A000000', 'editable' => true, 'label' => __('Couleur de la barre du slider')]; + $this->fields['sliderHandle'] = ['type' => 'couleur', 'default' => 'ffffff', 'editable' => true, 'label' => __('Couleur de la poignée')]; $this->fields['pageBarThumbBack'] = array('type' => 'couleurAlpha', 'default' => '80000000', 'editable' => true, 'label' => __("Couleur de fond de la boîte")); $this->fields['bookmarkColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true, 'label' => __("Couleur des marques-pages")); $this->forms['pagesbar'] = array('label' => __('Personnalisation de la barre des pages'), - 'fieldsnames' => array('pagesBar', 'pageBarThumbBack', '|', 'bookmarkColor')); + 'fieldsnames' => array('pagesBar', '|', 'sliderBackground', 'sliderHandle', '|', 'pageBarThumbBack', '|', 'bookmarkColor')); /* Paramètres non implémentés */ /* $this->fields['extraXSpace'] = array('type' => 'integer', 'default' => '0', 'editable' => true, diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 9c53e7a44..3084618b3 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -2298,6 +2298,9 @@ height="0" width="0" style="display:none;visibility:hidden"> $this->lessVariables['text-transform'] = $this->theme->parametres->interfaceFontUppercase ? 'uppercase' : 'inherit'; $this->lessVariables['css-scale'] = $this->cssScale; + + $this->lessVariables['slider-background'] = wsHTML5::colorToCSS($this->theme->parametres->sliderBackground); + $this->lessVariables['slider-handle'] = wsHTML5::colorToCSS($this->theme->parametres->sliderHandle); $this->lessVariables['slider-display'] = $this->_lessBoolean($this->theme->parametres->pagesBar); $this->lessVariables['slider-thumb-background'] = wsHTML5::colorToCSS($this->theme->parametres->pageBarThumbBack); $this->lessVariables['pages-background'] = $this->book->parametres->forceWhiteBackground ? '#ffffff' : 'transparent';