Renamed assets
This commit is contained in:
parent
aa14502dad
commit
9e0afa3cd6
|
@ -8,11 +8,10 @@ Designed by Marcin Orlowski <http://MarcinOrlowski.com>
|
|||
|
||||
## SVG files ##
|
||||
|
||||
* `logisim-evolution-logo-src.svg` - main logo project file (with texts as editable strings),
|
||||
* `logisim-evolution-logo.svg` - derived from main project file with all texts converted to paths,
|
||||
* `logisim-evolution-logo.svg` - main logo project file (with texts as editable strings),
|
||||
* `logisim-evolution-icon.svg` - project icon.
|
||||
|
||||
"NOTE: To properly render the `logisim-evolution-logo-src.svg` (be it in-app, on the web page, or elsewhere)
|
||||
"NOTE: To properly render the `logisim-evolution-logo.svg` (be it in-app, on the web page, or elsewhere)
|
||||
one must have all the used fonts installed on the build machine. Otherwise, your renderer/browser will substitute
|
||||
the fonts using available ones, which yields an incorrect image. Alternatively, you can either render
|
||||
your image to a bitmap (PNG image format is recommended, due to its lossless compression and transparency support)
|
||||
|
@ -43,7 +42,10 @@ Also update configuration of Github repo and organization:
|
|||
## Tools ##
|
||||
|
||||
Use `update_assets.sh` shell script to regenerated all PNG icons and logos using SVG source files.
|
||||
NOTE: please see script header for list of required external utilties you need to install first!
|
||||
|
||||
IMPORTANT NOTES:
|
||||
* You must have Inkscape, icoutils and icnsutils installed first (`apt install -y inkscape icoutils icnsutils`) as script needs these tools.
|
||||
* you **MUST** install logo fonts before running this script or output (mainly logo) will be broken.
|
||||
|
||||
## Fonts ##
|
||||
|
||||
|
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
@ -8,10 +8,10 @@
|
|||
version="1.1"
|
||||
id="svg64115"
|
||||
inkscape:version="1.1 (ce6663b3b7, 2021-05-25)"
|
||||
sodipodi:docname="logisim-evolution-logo-src.svg"
|
||||
inkscape:export-filename="/home/carlos/dev/projects/logisim-evolution/src/main/resources/resources/logisim/img/logisim-evolution-logo.png"
|
||||
inkscape:export-xdpi="141.69742"
|
||||
inkscape:export-ydpi="141.69742"
|
||||
sodipodi:docname="logisim-evolution-logo.svg"
|
||||
inkscape:export-filename="/home/carlos/dev/projects/logisim-evolution/artwork/logisim-evolution-logo.png"
|
||||
inkscape:export-xdpi="263.54959"
|
||||
inkscape:export-ydpi="263.54959"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
@ -40,7 +40,7 @@ function svg_to_png {
|
|||
|
||||
# Generates all required size PNG icons.
|
||||
function generate_png_icons {
|
||||
local -r svg="${SRC_DIR}/logisim-evolution-icon-src.svg"
|
||||
local -r svg="${SRC_DIR}/logisim-evolution-icon.svg"
|
||||
mkdir -p "${DEST_DIR}"
|
||||
for width in ${SIZES[*]}; do
|
||||
svg_to_png "${svg}" "${DEST_DIR}/logisim-icon-${width}.png" "${width}"
|
||||
|
@ -50,10 +50,10 @@ function generate_png_icons {
|
|||
# ##############################################################################
|
||||
|
||||
# Update logo PNG
|
||||
declare -r logo_src="${SRC_DIR}/logisim-evolution-logo-src.svg"
|
||||
declare -r logo_src="${SRC_DIR}/logisim-evolution-logo.svg"
|
||||
declare -r logo_width=550
|
||||
declare -r logo_dest="${IMG_DIR}/logisim-evolution-logo.png"
|
||||
svg_to_png "${logo_src}" "${logo_dest}" "${logo_width}"
|
||||
svg_to_png "${logo_src}" "${logo_dest}" "${logo_width}"
|
||||
|
||||
# Update icon PNGs
|
||||
generate_png_icons
|
||||
|
@ -84,4 +84,3 @@ done
|
|||
# macOS: ???
|
||||
# Windows: http://www.telegraphics.com.au/sw/product/ICOBundle (???)
|
||||
icotool -c -o "${SUPPORT_DIR}/windows/Logisim-evolution.ico" ${src_pngs[*]}
|
||||
|
||||
|
|
Loading…
Reference in New Issue