weblate/scripts/update-graphics
Michal Čihař 619cc9d6d3 Graphics: Add missing logo sizes
The default avatar size has changed from 16px to 24px, but the fallback
images were not updated.

Fixes #3577
2020-03-06 19:37:02 +01:00

25 lines
779 B
Bash
Executable file

#!/bin/sh
# Widgets
cp scripts/graphics/widgets/*.png weblate/static/widget-images/
# SVG
cp scripts/graphics/logo/weblate.svg scripts/graphics/logo/weblate-black.svg weblate/static/
./scripts/optimize-svg weblate/static/weblate*.svg
# favicon
cp scripts/graphics/logo/weblate.ico weblate/static/favicon.ico
# Scaled logos
for size in 24 32 80 128 150 180 192 512 ; do
cp scripts/graphics/logo/weblate-background-$size.png weblate/static/weblate-$size.png
done
for size in 16 32 128 1024 ; do
cp scripts/graphics/logo/weblate-logo-$size.png weblate/static/logo-$size.png
done
# Email logo
cp scripts/graphics/logo/weblate-logo-48.png weblate/static/email-logo.png
# Widgets
cp scripts/graphics/open-graph/Og-Template.png weblate/static/widget-images/open-graph.png