#! /bin/sh -e

THEMEDIR='/usr/share/themes/blackplastictheme-themedir'

if [ ! -d $THEMEDIR ]; then
  exit 0
fi

Q=`run-standalone.sh zenity --question --text="Install custom transitions? (affects only Black Plastic theme)" --ok-label=Yes; echo $?`

if [ "$Q" = "0" ]; then
      # install the custom things
      cp -rf /usr/share/themes/blackplastictheme-themedir/transitions.ricky /usr/share/themes/blackplastictheme-themedir/transitions.ini
fi

hildon-theme-cacher $THEMEDIR
exit 0
