Create multisize versions of ICO files for Windows.

This commit is contained in:
Roman Telezhynskyi 2024-01-30 20:35:12 +02:00
parent 43e69371b5
commit 281587512c
55 changed files with 32 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 107 KiB

BIN
dist/win/layout.ico vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 104 KiB

BIN
dist/win/pattern.ico vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

29
scripts/win_ico.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
# Requires icoutils package
# Run inside the scripts directory
declare -a apps=("valentina" "tape" "puzzle")
for app in "${apps[@]}"; do
iconset="../src/app/${app}/share/resources/${app}.iconset"
icotool --create "--output=../src/app/${app}/share/resources/${app}.ico" \
--icon ${iconset}/icon_16x16.png \
${iconset}/icon_32x32.png \
${iconset}/icon_128x128.png \
-r ${iconset}/icon_256x256.png \
-r ${iconset}/icon_512x512.png
done
declare -a mimetypes=("i-measurements" "k-measurements" "layout" "pattern" "s-measurements")
for mimetype in "${mimetypes[@]}"; do
iconset="../dist/win/valentina-project.assets/${mimetype}.iconset"
icotool --create "--output=../dist/win/${mimetype}.ico" \
--icon ${iconset}/icon_16x16.png \
${iconset}/icon_32x32.png \
${iconset}/icon_128x128.png \
-r ${iconset}/icon_256x256.png \
-r ${iconset}/icon_512x512.png
done

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View File

@ -1,4 +1,4 @@
IDI_ICON1 ICON DISCARDABLE "puzzleicon/64x64/logo.ico"
IDI_ICON1 ICON DISCARDABLE "puzzle.ico"
#include <windows.h>
#include "../../version.h"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

View File

@ -1,4 +1,4 @@
IDI_ICON1 ICON DISCARDABLE "tapeicon/64x64/logo.ico"
IDI_ICON1 ICON DISCARDABLE "tape.ico"
#include <windows.h>
#include "../../version.h"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

View File

@ -1,4 +1,4 @@
IDI_ICON1 ICON DISCARDABLE "../../../../libs/vmisc/share/resources/icon/64x64/icon64x64.ico"
IDI_ICON1 ICON DISCARDABLE "valentina.ico"
#include <windows.h>
#include "../../version.h"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB