Add icon conversion script and toolbar icons

This commit is contained in:
RichardG867
2022-01-31 20:47:48 -03:00
parent 47a8afa917
commit cdd003a92b
33 changed files with 56 additions and 0 deletions

42
icons.sh Normal file
View File

@@ -0,0 +1,42 @@
#!/bin/sh
# Check for repository path.
if [ -z "$1" ]
then
echo Specify 86Box repository path. ImageMagick is required.
exit 1
fi
# Determine the ImageMagick executable.
magick=magick
$magick >/dev/null 2>&1 || magick=magick.exe
# Convert icons to PNG.
for i in "$1/src/win/icons/"*.ico
do
$magick convert "$i" "usage/images/$(basename $i | sed -e 's/.ico$//').png"
done
# Remove unnecessary icons.
cd usage/images
rm -f 86Box-* *_empty* *_active* *_disabled* *-1.png *-2.png
# Get small and big icons.
for i in *-0.png
do
mv "$i" "$(echo $i | sed -e 's/-0/_small/')"
done
for i in *-3.png
do
mv "$i" "$(echo $i | sed -e 's/-3//')"
done
for i in *-4.png
do
mv "$i" "$(echo $i | sed -e 's/-4//')"
done
# Create include.rst entries.
for i in *.png
do
echo '.. |'$(echo $i | sed -e 's/.png//')'| image:: /usage/images/'$i
done

View File

@@ -4,6 +4,8 @@
.. |vel| unicode:: 0x22EE
:trim:
.. |acpi_shutdown| image:: /usage/images/acpi_shutdown.png
.. |acpi_shutdown_small| image:: /usage/images/acpi_shutdown_small.png
.. |cartridge| image:: /usage/images/cartridge.png
.. |cartridge_small| image:: /usage/images/cartridge_small.png
.. |cassette| image:: /usage/images/cassette.png
@@ -20,6 +22,8 @@
.. |floppy_and_cdrom_drives_small| image:: /usage/images/floppy_and_cdrom_drives_small.png
.. |hard_disk| image:: /usage/images/hard_disk.png
.. |hard_disk_small| image:: /usage/images/hard_disk_small.png
.. |hard_reset| image:: /usage/images/hard_reset.png
.. |hard_reset_small| image:: /usage/images/hard_reset_small.png
.. |input_devices| image:: /usage/images/input_devices.png
.. |input_devices_small| image:: /usage/images/input_devices_small.png
.. |machine| image:: /usage/images/machine.png
@@ -32,8 +36,18 @@
.. |other_peripherals_small| image:: /usage/images/other_peripherals_small.png
.. |other_removable_devices| image:: /usage/images/other_removable_devices.png
.. |other_removable_devices_small| image:: /usage/images/other_removable_devices_small.png
.. |pause| image:: /usage/images/pause.png
.. |pause_small| image:: /usage/images/pause_small.png
.. |ports| image:: /usage/images/ports.png
.. |ports_small| image:: /usage/images/ports_small.png
.. |run| image:: /usage/images/run.png
.. |run_small| image:: /usage/images/run_small.png
.. |send_cad| image:: /usage/images/send_cad.png
.. |send_cad_small| image:: /usage/images/send_cad_small.png
.. |send_cae| image:: /usage/images/send_cae.png
.. |send_cae_small| image:: /usage/images/send_cae_small.png
.. |settings| image:: /usage/images/settings.png
.. |settings_small| image:: /usage/images/settings_small.png
.. |sound| image:: /usage/images/sound.png
.. |sound_small| image:: /usage/images/sound_small.png
.. |storage_controllers| image:: /usage/images/storage_controllers.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 378 B

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 535 B

After

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 470 B

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 B

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 B

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 551 B

After

Width:  |  Height:  |  Size: 551 B

BIN
usage/images/hard_reset.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 B

After

Width:  |  Height:  |  Size: 547 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 B

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 B

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 609 B

After

Width:  |  Height:  |  Size: 609 B

BIN
usage/images/pause.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 461 B

After

Width:  |  Height:  |  Size: 461 B

BIN
usage/images/run.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

BIN
usage/images/run_small.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

BIN
usage/images/send_cad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

BIN
usage/images/send_cae.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

BIN
usage/images/settings.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 466 B

After

Width:  |  Height:  |  Size: 466 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 477 B

After

Width:  |  Height:  |  Size: 477 B