-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from grueneschweiz/dev
Dev
- Loading branch information
Showing
5 changed files
with
577 additions
and
3,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/<logo-name>-<light|dark>.svg` | ||
* Store the logo template files for download (vector files) in | ||
`storage/app/vector_logo_templates/<logo-name>` | ||
* 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. |
Oops, something went wrong.