#! /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)\n\nNote: tap outside this window to NOT to install the transitions\n\n(choose Yes if you don't know what to do)" --ok-label=Yes; echo $?`

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

#hildon-theme-cacher $THEMEDIR
#exit 0

	cp -rf /usr/share/themes/blackplastictheme-themedir/css  /usr/share/themes/blackplastictheme-themedir/variations/black/
	cp -rf /usr/share/themes/blackplastictheme-themedir/gtk-2.0  /usr/share/themes/blackplastictheme-themedir/variations/black/
	cp -rf /usr/share/themes/blackplastictheme-themedir/images  /usr/share/themes/blackplastictheme-themedir/variations/black/
	cp -rf /usr/share/themes/blackplastictheme-themedir/colors.config  /usr/share/themes/blackplastictheme-themedir/variations/black/

cp -rf /usr/share/themes/blackplastictheme-themedir/setup/setupblackplastic.sh /home/user/setupblackplastic.sh
chmod a+x /home/user/setupblackplastic.sh

sh /home/user/setupblackplastic.sh
