Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/Sun.rc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ END

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_SUN ICON DISCARDABLE "sun.ico"
IDI_SUN ICON DISCARDABLE "resources/app-icon/opents.ico"
IDI_CHECKED ICON DISCARDABLE "checked.ico"
IDI_UNCHECKED ICON DISCARDABLE "unchecked.ico"
IDI_GREYED ICON DISCARDABLE "greyed.ico"
Expand Down
22 changes: 22 additions & 0 deletions code/resources/app-icon/build-ico.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -euo pipefail

icon_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"

if ! command -v magick >/dev/null 2>&1; then
echo "Error: ImageMagick 'magick' was not found." >&2
exit 1
fi

magick \
\( -background none "$icon_dir/opents.svg" -resize 256x256 \) \
\( -background none "$icon_dir/opents.svg" -resize 128x128 \) \
\( -background none "$icon_dir/opents.svg" -resize 64x64 \) \
\( -background none "$icon_dir/opents.svg" -resize 48x48 \) \
\( -background none "$icon_dir/opents-flat.svg" -resize 32x32 \) \
\( -background none "$icon_dir/opents-flat.svg" -resize 24x24 \) \
\( -background none "$icon_dir/opents-flat.svg" -resize 16x16 \) \
"$icon_dir/opents.ico"

echo "Created $icon_dir/opents.ico"
1 change: 1 addition & 0 deletions code/resources/app-icon/opents-flat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/resources/app-icon/opents.ico
Binary file not shown.
1 change: 1 addition & 0 deletions code/resources/app-icon/opents.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed code/sun.ico
Binary file not shown.
Loading