Skip to content

Commit

Permalink
Created a high resolution version of the legacy icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
end2endzone committed Sep 8, 2024
1 parent 92925a7 commit bd042c7
Show file tree
Hide file tree
Showing 3 changed files with 261 additions and 0 deletions.
46 changes: 46 additions & 0 deletions resources/icons/0.2.0.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@echo off

:: Assume that ImageMagick already installed by installation script.
set PATH=%TEMP%\imagemagick;%PATH%

echo Searching for imagemagik executables in PATH...
where magick.exe
if errorlevel 1 (
echo File 'magick.exe' not found. Please install imagemagik on system and add the directory to PATH.
exit /B %errorlevel%
)
echo Found imagemagik directory.
echo.

call :process_file "0.2.0.svg"
pause
goto :eof


:process_file
echo Generate pngs...
magick -background none -size 16x16 "%~1" "%~dpn1-16.png"
magick -background none -size 32x32 "%~1" "%~dpn1-32.png"
magick -background none -size 48x48 "%~1" "%~dpn1-48.png"
magick -background none -size 64x64 "%~1" "%~dpn1-64.png"

echo Override generated 16x16 icon with the legacy 16x16 icon.
magick -background none "0.2.0-16x16-legacy.ico" "%~dpn1-16.png"

echo Generate ico...
set png_files=
set png_files=%png_files% "%~dpn1-16.png"
set png_files=%png_files% "%~dpn1-32.png"
set png_files=%png_files% "%~dpn1-48.png"
set png_files=%png_files% "%~dpn1-64.png"
magick %png_files% "%~dpn1.ico"

echo Generated "%~dpn1.ico".
echo.

echo Deleting png (intermediate files).
del %png_files%

goto :eof

:eof
Binary file added resources/icons/0.2.0.ico
Binary file not shown.
215 changes: 215 additions & 0 deletions resources/icons/0.2.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bd042c7

Please sign in to comment.