Hi 666philb, and all
just made a small update since fossa 9.6 icons paths its different
Code: Select all
APPLYCC () {
sizes=( '16' '22' '24' '32' '48' '64' 'scalable' )
for i in ${sizes[@]} ; do
sed -i -e 's/\(#\).\{6\}/\'$COLOUR1'/' '/usr/share/icons/PMaterial/'$i'/places/directory.svg' # for fossa 9.5
sed -i -e 's/\(#\).\{6\}/\'$COLOUR1'/' '/usr/share/icons/Puppy Standard/'$i'/places/directory.svg' # for fossa 9.6 and bionic
done
} ; export -f APPLYCC
and add single line on this action button since on my pc Rox crash credit to [mention]KuLuSz[/mention]
<action>killall ROX-Filer && rox -p /root/Choices/ROX-Filer/PuppyPin</action>
666philb wrote: Tue Nov 03, 2020 12:35 pmhere's a colour changer script for the default PMaterial icons in fossapup
folder-colour-2020-11-03-12-58-23.png
Code: Select all
#!/bin/sh GTKDIALOG=gtkdialog #export TMPDIR=/tmp/gtkdialog/examples/"`basename $0`" #mkdir -p "$TMPDIR" export TEXTDOMAIN=pmaterialfc export OUTPUT_CHARSET=UTF-8 . gettext.sh APPLYCC () { sed -i -e 's/\(#\).\{6\}/\'$COLOUR1'/' /usr/share/icons/PMaterial/16/places/directory.svg sed -i -e 's/\(#\).\{6\}/\'$COLOUR1'/' /usr/share/icons/PMaterial/22/places/directory.svg sed -i -e 's/\(#\).\{6\}/\'$COLOUR1'/' /usr/share/icons/PMaterial/24/places/directory.svg sed -i -e 's/\(#\).\{6\}/\'$COLOUR1'/' /usr/share/icons/PMaterial/32/places/directory.svg sed -i -e 's/\(#\).\{6\}/\'$COLOUR1'/' /usr/share/icons/PMaterial/48/places/directory.svg sed -i -e 's/\(#\).\{6\}/\'$COLOUR1'/' /usr/share/icons/PMaterial/64/places/directory.svg sed -i -e 's/\(#\).\{6\}/\'$COLOUR1'/' /usr/share/icons/PMaterial/scalable/places/directory.svg } export -f APPLYCC MAIN_DIALOG=' <window title="PmaterialFC" icon-name="preferences-desktop-theme" window-position="1"> <vbox> <frame Pmaterial Folder Colour> <hbox space-expand="true" space-fill="true"> <pixmap> <height>60</height> <width>60</width> <input file icon="directory"></input> </pixmap> <vbox> <text><label>Choose Colour</label></text> <colorbutton tooltip-text="'"$(gettext "Select Colour Of Folder")"'"> <default>#07726a</default> <variable>COLOUR1</variable> <action>APPLYCC &</action> </colorbutton> </vbox> </hbox> <vbox> <text><label>Restart ROX to see changes</label></text> <button tooltip-text="'"$(gettext "Restart Rox")"'"> <label>Restart ROX</label> <input file icon="refresh"></input> <action>killall ROX-Filer</action> <action>rox -p /root/Choices/ROX-Filer/PuppyPin</action> </button> </vbox> <hbox> <button> <label>'$(gettext 'Quit')'</label> <input file>/usr/share/icons/PMaterial/scalable/actions/quit.svg</input><height>18</height><width>18</width> <action>exit:quit_now</action> </button> </hbox> </frame> </vbox> </window>' GUI=" <window> <vbox> <menubar> ... </menubar> </vbox> <action signal=\"hide\">exit:Exit</action> </window>" export MAIN_DIALOG case $1 in -d | --dump) echo "$MAIN_DIALOG" ;; *) $GTKDIALOG --program=MAIN_DIALOG ;; esac