mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-06 21:09:50 -06:00
feat(tray): support hi-DPI
This commit is contained in:
@@ -15,6 +15,8 @@ output_dir="$script_dir/../../images/app-icons/tray"
|
||||
|
||||
for file in *.svg; do
|
||||
name=$(basename $file .svg)
|
||||
inkscape -w 16 -h 16 "$file" -o "$output_dir/$name-16.png"
|
||||
magick "$output_dir/$name-16.png" -channel RGB -negate "$output_dir/$name-inverted-16.png"
|
||||
inkscape -w 16 -h 16 "$file" -o "$output_dir/$name.png"
|
||||
inkscape -w 32 -h 32 "$file" -o "$output_dir/$name@2x.png"
|
||||
magick "$output_dir/$name.png" -channel RGB -negate "$output_dir/$name-inverted.png"
|
||||
magick "$output_dir/$name@2x.png" -channel RGB -negate "$output_dir/$name-inverted@2x.png"
|
||||
done
|
||||
Reference in New Issue
Block a user