From bd632c7ac6379fe102cf8d5ccdc169e75e14f3fd Mon Sep 17 00:00:00 2001 From: Cyrill Bolliger Date: Wed, 14 Jun 2023 15:00:00 +0200 Subject: [PATCH 1/3] [FEAT] renaming of I VERDI to VERDI --- app/Logo/Verdi.php | 4 +- storage/app/base_logos/verdi-dark.svg | 1164 +----------------------- storage/app/base_logos/verdi-light.svg | 1164 +----------------------- 3 files changed, 64 insertions(+), 2268 deletions(-) diff --git a/app/Logo/Verdi.php b/app/Logo/Verdi.php index 2417cbbe..06d33898 100644 --- a/app/Logo/Verdi.php +++ b/app/Logo/Verdi.php @@ -18,7 +18,7 @@ public function getLogoIdentifier(int $width): string protected function getRelSublineOffsetX(): float { - return 32; + return 35.5; } protected function getRelSublineOffsetY(): float @@ -35,7 +35,7 @@ protected function getAbsBaseLogoPath(): string protected function getSublineFontSize(): float { - return 7.35; + return 8.25; } protected function getTestOverlayPath(): ?string diff --git a/storage/app/base_logos/verdi-dark.svg b/storage/app/base_logos/verdi-dark.svg index 1f694e39..cb1897b8 100644 --- a/storage/app/base_logos/verdi-dark.svg +++ b/storage/app/base_logos/verdi-dark.svg @@ -1,1133 +1,31 @@ - -image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + diff --git a/storage/app/base_logos/verdi-light.svg b/storage/app/base_logos/verdi-light.svg index 6e0b5051..4fef3dc5 100644 --- a/storage/app/base_logos/verdi-light.svg +++ b/storage/app/base_logos/verdi-light.svg @@ -1,1133 +1,31 @@ - -image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + From 412c6bc4f0f456e01fdfcaa28dee33269ad0b22b Mon Sep 17 00:00:00 2001 From: Cyrill Bolliger Date: Wed, 14 Jun 2023 15:00:19 +0200 Subject: [PATCH 2/3] [DOCS] update logo docs --- docs/logo.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/logo.md b/docs/logo.md index 8b5333d1..0aef8b78 100644 --- a/docs/logo.md +++ b/docs/logo.md @@ -1,24 +1,25 @@ # How to Add a Base Logo ## The 100 simple steps ;) -* Generate a dark and a light SVG of the logo and store it in + +* Generate a dark and a light SVG of the logo and store it in `storage/app/base_logos/-.svg` * Store the logo template files for download (vector files) in `storage/app/vector_logo_templates/` * Create a logo class that implements `App\Logo\LogoCompositor` in `app/Logo`. Name the class after your logo. * Register the logo class in the `app/Logo/LogoFactory.php` -* Add the logo settings to the `LogoTypes` and `LogoSublineRatios` constants in +* Add the logo settings to the `LogoTypes` and `LogoTypeRatios` constants in `resources/js/service/canvas/Constants.js` -* Add the logo settings to the `LogoTypeRatios` in - `resources/js/service/canvas/elements/Logo.js` * Add the logo type to the `types` property of `data()` in `js/components/molecules/MLogoForm.vue` ## Common issues -- SVGs that use a clip path don't work well with the current version of image + +- SVGs that use a clip path don't work well with the current version of image magick. In case your image has a width <= 1 after trimming, try to remove the clip path. ## Todo + Refactor the logo handling, so adding a logo isn't such a pain anymore. From 0cb4f74c84fa90daffc14e358f47e510ffbc01fb Mon Sep 17 00:00:00 2001 From: Cyrill Bolliger Date: Wed, 14 Jun 2023 15:13:25 +0200 Subject: [PATCH 3/3] [FEAT] replace verdi reference logo --- storage/app/reference_logos/verdi.svg | 1628 ++++++++----------------- 1 file changed, 507 insertions(+), 1121 deletions(-) diff --git a/storage/app/reference_logos/verdi.svg b/storage/app/reference_logos/verdi.svg index c83b7660..63e6fafd 100644 --- a/storage/app/reference_logos/verdi.svg +++ b/storage/app/reference_logos/verdi.svg @@ -1,1121 +1,507 @@ - -image/svg+xml \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +