Skip to content

Commit

Permalink
#3147 icon: add generation for icns icons
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Nov 15, 2024
1 parent fd04351 commit a773467
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions icons/generate-icons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,14 @@ convert_icon_icns() {
fi

echo "ICNS converting to -> ${output_file}"
# magick -density 300 -define icon:auto-resize=1024,512,256,128,96,64,48,32,16 -background none "$input_file" "$output_file"
magick "$input_file" -resize "1024x1024" "$output_file"

mkdir iconset
for size in 16 32 64 128 256 512 1024; do
rsvg-convert -w $size -h $size $INPUT_SVG -o iconset/icon_${size}x${size}.png
done

png2icns "$output_file" iconset/*.png
rm -rf iconset
}

# Generate all sizes
Expand Down
Binary file modified icons/icon.icns
Binary file not shown.
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
ripgrep
librsvg
imagemagick
libicns
];

buildInputs = with pkgs; with qt6; [
Expand Down
Binary file modified src/QOwnNotes.icns
Binary file not shown.

0 comments on commit a773467

Please sign in to comment.