Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,938 changes: 39 additions & 1,899 deletions data/icons/128.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5,244 changes: 4 additions & 5,240 deletions data/icons/16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5,379 changes: 0 additions & 5,379 deletions data/icons/24.svg

This file was deleted.

5,069 changes: 16 additions & 5,053 deletions data/icons/32.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5,027 changes: 19 additions & 5,008 deletions data/icons/48.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,467 changes: 127 additions & 3,340 deletions data/icons/64.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
icon_sizes = ['16', '24', '32', '48', '64', '128']
icon_sizes = ['16', '32', '48', '64', '128']

foreach i : icon_sizes
install_data(
Expand Down
22 changes: 22 additions & 0 deletions pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
#
# Runs Inkscape vacuum to clean up svgs

CDIR=$(git rev-parse --show-toplevel)
echo "Running Inkscape vacuum. This may take some time..."

# Check if Inkscape is a flatpak or not
if [ $(which inkscape &>/dev/null; echo $?) == 0 ]; then
INKSCAPE='inkscape'
else
INKSCAPE='flatpak run org.inkscape.Inkscape'
fi

git diff --cached --name-status --diff-filter=ACMR | while read STATUS FILE; do
if [[ "$FILE" =~ ^.+(svg)$ ]]; then
$INKSCAPE --vacuum-defs -z $CDIR/$FILE --export-plain-svg=$CDIR/$FILE
fi
done

git add .
exit 0