#! /bin/sh -e

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

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

Q=`run-standalone.sh zenity --question --text="Install customized transitions also?\n(affects only the Black Plastic theme)\nNote: tap outside this window to NOT to install the transitions" --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
