Browse Source

Add drop shadows to MacOS icons

Apple UI guidelines ask for small drop shadows on the icons.  We add
these using ImageMagick when resizing
6.0.7
Seth Hillbrand 4 years ago
parent
commit
6cd4d68d57
  1. BIN
      bitmap2component/bitmap2component.icns
  2. 16
      bitmaps_png/mk_mac_icons.sh
  3. BIN
      eeschema/eeschema.icns
  4. BIN
      eeschema/eeschema_doc.icns
  5. BIN
      gerbview/gerbview.icns
  6. BIN
      gerbview/gerbview_doc.icns
  7. BIN
      kicad/kicad.icns
  8. BIN
      kicad/kicad_doc.icns
  9. BIN
      pagelayout_editor/pagelayout_editor.icns
  10. BIN
      pagelayout_editor/pagelayout_editor_doc.icns
  11. BIN
      pcb_calculator/pcb_calculator.icns
  12. BIN
      pcbnew/pcbnew.icns
  13. BIN
      pcbnew/pcbnew_doc.icns

BIN
bitmap2component/bitmap2component.icns

16
bitmaps_png/mk_mac_icons.sh

@ -34,6 +34,18 @@ do
# MacOS wants icons with 10% clearance on each side
let "sub_sz = $sz * 8 / 10"
sigma=3
if [ $sz -eq 16 ]
then
sigma=2
elif [ $sz -ge 512 ]
then
sigma=5
fi
# Offset the drop shadow by one smaller than the kernel
let "off = $sigma - 1"
# Use specialized icons for smaller sizes to keep pixel alignment
if [ $sz -le 32 ]
then
@ -42,7 +54,7 @@ do
inkscape sources/light/icon_${pgm}.svg -o macos_tmp/${pgm}_small_${sz}px.png -w ${sub_sz} -h ${sub_sz} --export-area-snap
fi
convert macos_tmp/${pgm}_small_${sz}px.png -size $size xc:transparent +swap -gravity center -composite macos_tmp/${pgm}_${sz}px.png
convert macos_tmp/${pgm}_small_${sz}px.png \( +clone -background black -shadow 80x${sigma}+${off}+${off} \) +swap -background transparent -layers merge +repage -size $size xc:transparent +swap -gravity center -composite macos_tmp/${pgm}_${sz}px.png
output+="macos_tmp/${pgm}_${sz}px.png "
done
@ -61,4 +73,4 @@ do
fi
done
rm -rf macos_tmp
# rm -rf macos_tmp

BIN
eeschema/eeschema.icns

BIN
eeschema/eeschema_doc.icns

BIN
gerbview/gerbview.icns

BIN
gerbview/gerbview_doc.icns

BIN
kicad/kicad.icns

BIN
kicad/kicad_doc.icns

BIN
pagelayout_editor/pagelayout_editor.icns

BIN
pagelayout_editor/pagelayout_editor_doc.icns

BIN
pcb_calculator/pcb_calculator.icns

BIN
pcbnew/pcbnew.icns

BIN
pcbnew/pcbnew_doc.icns

Loading…
Cancel
Save