#!/bin/sh

#####################################################################
# This is a script to change the highlight color of the Adept theme #
#####################################################################

# If you plan to use this script outside of the Adept/gtk directory, uncomment
# one of the followind lines (dependint on if it is installed system-wide or
# at a user-level):

#ADEPT_DIR=/usr/themes/Adept/gtk/
#ADEPT_DIR=$HOME/.themes/Adept/gtk/

# Check to see if the user specified a color. If not, then the default blue
# color is chosen.

if [ "$1" = "" ]; then 
	set 778394;
	#set 909090;
fi

# Use the template gtkrc file and subsitute the highlight color.

sed -e "s/HIGHLIGHT_COLOR/\#$1/g" < \
	${ADEPT_DIR}template.gtkrc > \
	${ADEPT_DIR}gtkrc;

echo
echo "***********************************************************************"
echo "  $0 changed highlight color to: #${1}"
echo "***********************************************************************"
echo
echo Please note that you may need to restart your applications 
echo for chanages to take effect.
echo
