#! /bin/sh -e

THEMEDIR='/usr/share/themes/Blue-sky'

if [ ! -d $THEMEDIR ]; then
  exit 0
fi
	  
Q=`run-standalone.sh zenity  --list  --text "Would you like to install the customized transitions as well?\n The transitions are applyed only if this theme is used." --radiolist  --column "Pick" --column "Transition" TRUE "Install custom transitions" FALSE "Don't install custom transitions"; echo $ans`

if [ "$Q" = "Install custom transitions" ]; then
      # install the custom things
     	cp -rf /usr/share/themes/Blue-sky/transitions.custom /usr/share/themes/Blue-sky/transitions.ini

else

	rm -rf /usr/share/themes/Blue-sky/transitions.ini

fi

hildon-theme-cacher $THEMEDIR
exit 0

