Add icons

This commit is contained in:
Ivan Jurišić 2023-08-04 13:07:24 +02:00
parent a07118a01a
commit 5f4ec1bee3
16 changed files with 10 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 852 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -40,6 +40,13 @@ prepare_winebox() {
echo "DONE" echo "DONE"
} }
addIcons() {
for size in $(ls -1 icons/winbox-*.png | cut -d\- -f2 | cut -d\. -f1 | paste -sd ' '); do
mkdir -p /usr/share/icons/hicolor/${size}/apps/
cp -f icons/winbox-${size}.png /usr/share/icons/hicolor/${size}/apps/winbox.png
done
}
createMenu() { createMenu() {
echo -n "Creating application launcher..." echo -n "Creating application launcher..."
echo "[Desktop Entry]" >$WINBOX_DESKTOP echo "[Desktop Entry]" >$WINBOX_DESKTOP
@ -61,4 +68,5 @@ createMenu() {
check_root check_root
check_progs check_progs
prepare_winebox prepare_winebox
addIcons
createMenu createMenu