#!/bin/bash
#Change retrovol icon color
#rg66

export TEXTDOMAIN=retrocon
export OUTPUT_CHARSET=UTF-8
. gettext.sh

INIT=`cat /usr/share/retrovol/images/audio-volume-high.svg | grep -o "#......" | awk NR==1`
COLOR=`yad --title="$(gettext 'Retrovol Icon Color')" --window-icon="/usr/share/retrovol/images/audio-volume-high.svg" --color --init-color="$INIT"`
[ "$COLOR" = "" ] && exit || sed -i 's/'$INIT'/'$COLOR'/g' /usr/share/retrovol/images/*.svg

