I think xpm works too. I did this to make a color changing curved line:SFR wrote:Ahh, me too can't find a way to use markup within buttons' labels. Is it possible? I hope so...
Another way would be to use (dynamically generated) SVG images as button's body, instead of a plain text.
Code: Select all
echo "/* XPM */" >$DEMOXPM
echo "static char * Untitled_xpm[] = {" >>$DEMOXPM
echo '"64 64 2 1",' >>$DEMOXPM
echo '" c #000000",' >>$DEMOXPM
echo "". c #$COLOR"," >>$DEMOXPM
for (( I=0; I<63; I=I+1 )) ; do
THIS=$(( ( 64 * $I * $I + ( 63 * 63 ) ) / ( 63 * 63 ) ))
STR="............."
STR="${STR:0:$(( 1 + $THIS - $PREV ))}"
STR=$( printf "%${THIS}s" "$STR" )
STR=$( printf "%-64s" "$STR" )
echo ""$STR"," >>$DEMOXPM
PREV="$THIS"
done
printf '"%64s"};' " " >>$DEMOXPM