From: Vincent Vanwaelscappel Date: Mon, 23 Oct 2023 13:52:32 +0000 (+0200) Subject: wait #6437 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=886c1a3bb239cb7e108a510472428eeae1743109;p=fluidbook-toolbox.git wait #6437 @0.25 --- diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index 3db335102..f8db24547 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -1288,7 +1288,7 @@ class Compiler extends Base implements CompilerInterface { //dd($this->themeAsset('afterSearch')); if ($afterSearch = $this->themeAsset('afterSearch')) { - $this->vdir->copy($afterSearch->getPathname(), 'data/images/' . $afterSearch->getFilename()); + $this->vdir->copy(SVGTools::optimizeSVG($afterSearch->getPathname()), 'data/images/' . $afterSearch->getFilename()); } if ($this->fluidbookSettings->externalArchives != '') { $this->addFilesInfos('archives', $this->wdir . '/' . $this->fluidbookSettings->externalArchives); @@ -1905,6 +1905,13 @@ class Compiler extends Base implements CompilerInterface $this->lessVariables['thumb-height'] = $thumbh . 'px'; + # Aftersearch + if ($afterSearch = $this->themeAsset('afterSearch')) { + $dim = Image::getimagesize($afterSearch); + $this->lessVariables['aftersearch-width'] = $dim[0].'px'; + $this->lessVariables['aftersearch-height'] = $dim[1].'px'; + } + #tooltip $this->lessVariables['tooltip-background'] = Color::colorToCSS($this->themeSettings->tooltipBackColor); $this->lessVariables['tooltip-color'] = Color::colorToCSS($this->themeSettings->tooltipTextColor);