Add new monochome macOS preferences icon set.
[dcpomatic.git] / graphics / update
index 72aaa5f26221892882690c7bb68756084e246e0b..2997610c32dff12e8b4b14606532c934719cf7e0 100755 (executable)
@@ -21,14 +21,15 @@ if [ `uname -s` == "Darwin" ]; then
     done
 else
 
-    for c in icotool convert inkscape; do
+    for c in icotool convert inkscape inkbatch; do
         if [ ! -x "$(command -v $c)" ]; then
             echo "$c is required"
             exit 1
         fi
     done
 
-    INKSCAPE="inkscape -z -C -e"
+    INKSCAPE="inkscape"
+    INKSCAPE_PAGE="$INKSCAPE -z -C -e"
 
     # OS X application icons
     mkdir -p osx
@@ -40,8 +41,8 @@ else
        done
        for p in $svg_apps; do
            mkdir -p osx/$p.iconset
-           $INKSCAPE osx/$p.iconset/icon_${r}x${r}.png -w $r -h $r src/$p.svg
-           $INKSCAPE osx/$p.iconset/icon_${r}x${r}@2x.png -w $r -h $r src/$p.svg
+           $INKSCAPE_PAGE osx/$p.iconset/icon_${r}x${r}.png -w $r -h $r src/$p.svg
+           $INKSCAPE_PAGE osx/$p.iconset/icon_${r}x${r}@2x.png -w $r -h $r src/$p.svg
        done
     done
 
@@ -51,7 +52,7 @@ else
        mkdir -p linux/$r
        convert src/dcpomatic.png -resize $rx$r linux/$r/dcpomatic2.png
        for p in $svg_apps; do
-           $INKSCAPE linux/$r/$p.png src/$p.svg -w $r -h $r
+           $INKSCAPE_PAGE linux/$r/$p.png src/$p.svg -w $r -h $r
        done
     done
 
@@ -63,29 +64,28 @@ else
     convert src/dcpomatic.png -resize 400x400 windows/dcpomatic.bmp
 
     # OS X preferences icons
-    # servers.png does not have an SVG version
     mkdir -p osx/preferences
-    for i in colour_conversions defaults email kdm_email cover_sheet keys tms notifications locations sound identifiers; do
-       $INKSCAPE osx/preferences/$i.png src/$i.svg -w 32 -h 32
+    for i in defaults email kdm_email cover_sheet keys tms notifications locations sound identifiers servers; do
+        inkbatch -i bounds-$i -o osx/preferences/$i.png --width 32 --height 32 src/preferences.svg
     done
 
     # OS X menu bar icon for the server
-    $INKSCAPE osx/dcpomatic_small.png -w 64 -h 64 src/dcpomatic_small.svg
+    $INKSCAPE_PAGE osx/dcpomatic_small.png -w 64 -h 64 src/dcpomatic_small.svg
 
     # Splash screen (all platforms)
-    $INKSCAPE splash.png src/splash.svg -w 400 -h 300
+    $INKSCAPE_PAGE splash.png src/splash.svg -w 400 -h 300
 
     # Timeline toolbar icons (all platforms)
     for i in select zoom zoom_all snap sequence; do
-        $INKSCAPE $i.png src/$i.svg -w 32 -h 32
+        $INKSCAPE_PAGE $i.png src/$i.svg -w 32 -h 32
     done
 
     # Playlist editor tick/no-tick
-    $INKSCAPE tick.png src/tick.svg -w 16 -h 16
-    $INKSCAPE no_tick.png src/no_tick.svg -w 16 -h 16
+    $INKSCAPE_PAGE tick.png src/tick.svg -w 16 -h 16
+    $INKSCAPE_PAGE no_tick.png src/no_tick.svg -w 16 -h 16
 
     # Link icon
-    $INKSCAPE link.png src/link.svg -w 9 -h 16
+    $INKSCAPE_PAGE link.png src/link.svg -w 9 -h 16
 
     # favicon
     mkdir -p web