GODT-1565: Update Bridge application icons.

This commit is contained in:
Jakub 2022-06-08 15:17:42 +02:00
parent 5ef3774d11
commit 12e5ce0ff0
37 changed files with 563 additions and 38 deletions

View File

@ -12,9 +12,9 @@ TARGET_OS?=${GOOS}
# Keep version hardcoded so app build works also without Git repository.
BRIDGE_APP_VERSION?=2.2.0+git
APP_VERSION:=${BRIDGE_APP_VERSION}
SRC_ICO:=logo.ico
SRC_ICO:=bridge.ico
SRC_ICNS:=Bridge.icns
SRC_SVG:=logo.svg
SRC_SVG:=bridge.svg
EXE_NAME:=proton-bridge
CONFIGNAME:=bridge
REVISION:=$(shell git rev-parse --short=10 HEAD)
@ -88,7 +88,7 @@ ${TGZ_TARGET}: ${DEPLOY_DIR}/${TARGET_OS}
cd ${DEPLOY_DIR}/${TARGET_OS} && tar -czvf ../../../../$@ .
${DEPLOY_DIR}/linux: ${EXE_TARGET}
cp -pf ./internal/frontend/share/${SRC_SVG} ${DEPLOY_DIR}/linux/logo.svg
cp -pf ./dist/${SRC_SVG} ${DEPLOY_DIR}/linux/logo.svg
cp -pf ./LICENSE ${DEPLOY_DIR}/linux/
cp -pf ./Changelog.md ${DEPLOY_DIR}/linux/
cp -pf ./dist/${EXE_NAME}.desktop ${DEPLOY_DIR}/linux/
@ -98,7 +98,7 @@ ${DEPLOY_DIR}/darwin: ${EXE_TARGET}
mv ${EXE_TARGET}/Contents/MacOS/{${DIRNAME},${EXE_NAME}}; \
perl -i -pe"s/>${DIRNAME}/>${EXE_NAME}/g" ${EXE_TARGET}/Contents/Info.plist; \
fi
cp ./internal/frontend/share/${SRC_ICNS} ${DARWINAPP_CONTENTS}/Resources/${SRC_ICNS}
cp ./dist/${SRC_ICNS} ${DARWINAPP_CONTENTS}/Resources/${SRC_ICNS}
cp LICENSE ${DARWINAPP_CONTENTS}/Resources/
rm -rf "${DARWINAPP_CONTENTS}/Frameworks/QtWebEngine.framework"
rm -rf "${DARWINAPP_CONTENTS}/Frameworks/QtWebView.framework"
@ -106,7 +106,7 @@ ${DEPLOY_DIR}/darwin: ${EXE_TARGET}
./utils/remove_non_relative_links_darwin.sh "${EXE_TARGET}${EXE_BINARY_DARWIN}"
${DEPLOY_DIR}/windows: ${EXE_TARGET}
cp ./internal/frontend/share/${SRC_ICO} ${DEPLOY_DIR}/windows/logo.ico
cp ./dist/${SRC_ICO} ${DEPLOY_DIR}/windows/logo.ico
cp LICENSE ${DEPLOY_DIR}/windows/
QT_BUILD_TARGET:=build desktop
@ -127,7 +127,7 @@ ${EXE_TARGET}: check-has-go gofiles ${RESOURCE_FILE} ${VENDOR_TARGET}
WINDRES_YEAR:=$(shell date +%Y)
APP_VERSION_COMMA:=$(shell echo "${APP_VERSION}" | sed -e 's/[^0-9,.]*//g' -e 's/\./,/g')
resource.syso: ./internal/frontend/share/info.rc ./internal/frontend/share/${SRC_ICO} .FORCE
resource.syso: ./dist/info.rc ./dist/${SRC_ICO} .FORCE
rm -f ./*.syso
windres --target=pe-x86-64 -I ./internal/frontend/share/ -D ICO_FILE=${SRC_ICO} -D EXE_NAME="${EXE_NAME}" -D FILE_VERSION="${APP_VERSION}" -D ORIGINAL_FILE_NAME="${EXE}" -D PRODUCT_VERSION="${APP_VERSION}" -D FILE_VERSION_COMMA=${APP_VERSION_COMMA} -D YEAR=${WINDRES_YEAR} -o $@ $<

BIN
dist/Bridge.icns vendored Normal file

Binary file not shown.

BIN
dist/bridge.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

32
dist/bridge.svg vendored Normal file
View File

@ -0,0 +1,32 @@
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_9588_57903)">
<path d="M127.416 -0.0898438C63.1423 -0.0898438 11.0449 51.9864 11.0449 116.234V233.331C11.0449 245.779 21.1405 255.871 33.5942 255.871H223.647C234.767 255.871 243.788 246.853 243.788 235.738V116.234C243.788 51.9948 191.691 -0.0898438 127.416 -0.0898438ZM194.401 115.589L143.537 158.421C134.357 166.155 120.929 166.155 111.749 158.421L60.8849 115.589C60.8849 79.2409 90.3659 49.7718 126.728 49.7718H128.558C164.92 49.7718 194.401 79.2409 194.401 115.589Z" fill="#6D4AFF"/>
<path d="M127.416 -0.0898438C63.1423 -0.0898438 11.0449 51.9864 11.0449 116.234V233.331C11.0449 245.779 21.1405 255.871 33.5942 255.871H223.647C234.767 255.871 243.788 246.853 243.788 235.738V116.234C243.788 51.9948 191.691 -0.0898438 127.416 -0.0898438ZM194.401 115.589L143.537 158.421C134.357 166.155 120.929 166.155 111.749 158.421L60.8849 115.589C60.8849 79.2409 90.3659 49.7718 126.728 49.7718H128.558C164.92 49.7718 194.401 79.2409 194.401 115.589Z" fill="url(#paint0_linear_9588_57903)"/>
<g filter="url(#filter0_i_9588_57903)">
<path d="M143.572 158.939C138.271 163.23 124.489 169.238 111.766 158.939C99.0439 148.64 72.6401 125.871 61.0285 115.774H61.0868L60.8676 115.59C60.8676 79.2418 90.3367 49.7728 126.684 49.7728H128.513C164.861 49.7728 194.33 79.2418 194.33 115.59L194.111 115.774H194.31V255.872H223.564C234.679 255.872 243.697 246.854 243.697 235.739V116.235C243.697 51.9958 191.62 -0.0888672 127.372 -0.0888672C63.1241 -0.0888672 11.0479 51.9874 11.0479 116.235V123.587L82.9896 185.444C88.2906 190.492 102.224 197.56 115.553 185.444C128.881 173.327 139.786 162.726 143.572 158.939Z" fill="url(#paint1_radial_9588_57903)"/>
</g>
</g>
<defs>
<filter id="filter0_i_9588_57903" x="7.29545" y="-0.0888672" width="236.401" height="266.43" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-3.7524" dy="10.4692"/>
<feGaussianBlur stdDeviation="28.143"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9588_57903"/>
</filter>
<linearGradient id="paint0_linear_9588_57903" x1="19.3784" y1="285.405" x2="54.2022" y2="186.949" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint1_radial_9588_57903" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(229.979 277.075) rotate(-138.034) scale(294.445 240.743)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
<clipPath id="clip0_9588_57903">
<rect width="256" height="256" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -8,4 +8,4 @@ Icon=protonmail-bridge
Exec=protonmail-bridge
Terminal=false
Categories=Office;Email;Network
StartupWMClass=protonmail-bridge
StartupWMClass=Proton Mail Bridge

BIN
dist/raw/mac_icon_1024x1024.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

BIN
dist/raw/mac_icon_128x128.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

57
dist/raw/mac_icon_128x128.svg vendored Normal file
View File

@ -0,0 +1,57 @@
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_dii_9564_57506)">
<path d="M12.5 34.5C12.5 22.0736 22.5736 12 35 12H93C105.426 12 115.5 22.0736 115.5 34.5V92.5C115.5 104.926 105.426 115 93 115H35C22.5736 115 12.5 104.926 12.5 92.5V34.5Z" fill="url(#paint0_radial_9564_57506)"/>
</g>
<path d="M63.8822 33.5049C50.8792 33.5049 40.3396 44.0444 40.3396 57.0474V80.7462C40.3396 83.2656 42.382 85.308 44.9014 85.308H83.3501C85.5996 85.308 87.4247 83.4829 87.4247 81.2334V57.0474C87.4247 44.0461 76.8851 33.5049 63.8822 33.5049ZM77.4335 56.9167L67.1435 65.5854C65.2862 67.1507 62.5698 67.1507 60.7125 65.5854L50.4225 56.9167C50.4225 49.5604 56.3866 43.5962 63.7429 43.5962H64.1131C71.4694 43.5962 77.4335 49.5604 77.4335 56.9167Z" fill="#6D4AFF"/>
<path d="M63.8822 33.5049C50.8792 33.5049 40.3396 44.0444 40.3396 57.0474V80.7462C40.3396 83.2656 42.382 85.308 44.9014 85.308H83.3501C85.5996 85.308 87.4247 83.4829 87.4247 81.2334V57.0474C87.4247 44.0461 76.8851 33.5049 63.8822 33.5049ZM77.4335 56.9167L67.1435 65.5854C65.2862 67.1507 62.5698 67.1507 60.7125 65.5854L50.4225 56.9167C50.4225 49.5604 56.3866 43.5962 63.7429 43.5962H64.1131C71.4694 43.5962 77.4335 49.5604 77.4335 56.9167Z" fill="url(#paint1_linear_9564_57506)"/>
<g filter="url(#filter1_i_9564_57506)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M67.1608 65.6901C66.088 66.5586 63.2985 67.7745 60.7237 65.6901C58.1489 63.6057 52.8051 58.9976 50.4551 56.9541H50.4668L50.4225 56.9167C50.4225 49.5604 56.3866 43.5962 63.7429 43.5962H64.1131C71.4694 43.5962 77.4335 49.5604 77.4335 56.9167L77.3892 56.9541H77.4295V85.308H83.3501C85.5996 85.308 87.4247 83.4829 87.4247 81.2334V57.0474C87.4247 44.0461 76.8851 33.5049 63.8822 33.5049C50.8792 33.5049 40.3396 44.0444 40.3396 57.0474V58.5354L54.8997 71.0543C55.9725 72.0761 58.7926 73.5065 61.49 71.0543C64.1875 68.6021 66.3945 66.4564 67.1608 65.6901Z" fill="url(#paint2_radial_9564_57506)"/>
</g>
<defs>
<filter id="filter0_dii_9564_57506" x="10" y="10.5" width="108" height="109.5" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="2.5"/>
<feGaussianBlur stdDeviation="1.25"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9564_57506"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9564_57506" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="1.25" dy="1.5"/>
<feGaussianBlur stdDeviation="0.5"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
<feBlend mode="normal" in2="shape" result="effect2_innerShadow_9564_57506"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.75" dy="-1.5"/>
<feGaussianBlur stdDeviation="0.75"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.0470588 0 0 0 0 0.0470588 0 0 0 0 0.0784314 0 0 0 0.04 0"/>
<feBlend mode="normal" in2="effect2_innerShadow_9564_57506" result="effect3_innerShadow_9564_57506"/>
</filter>
<filter id="filter1_i_9564_57506" x="39.5802" y="33.5049" width="47.8446" height="53.9219" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.759437" dy="2.11883"/>
<feGaussianBlur stdDeviation="5.69578"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9564_57506"/>
</filter>
<radialGradient id="paint0_radial_9564_57506" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(46.9004 16.5264) rotate(59.8421) scale(126.337)">
<stop stop-color="white"/>
<stop offset="0.639344" stop-color="#F5F4F2"/>
<stop offset="1" stop-color="#D1CFCD"/>
</radialGradient>
<linearGradient id="paint1_linear_9564_57506" x1="42.0255" y1="91.2853" x2="49.0756" y2="71.361" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint2_radial_9564_57506" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(84.6486 89.5994) rotate(-138.034) scale(59.5919 48.7234)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
dist/raw/mac_icon_16x16.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

57
dist/raw/mac_icon_16x16.svg vendored Normal file
View File

@ -0,0 +1,57 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_dii_9564_57528)">
<path d="M1.56006 4.37365C1.56006 2.81975 2.81975 1.56006 4.37365 1.56006H11.6265C13.1804 1.56006 14.4401 2.81975 14.4401 4.37365V11.6265C14.4401 13.1804 13.1804 14.4401 11.6265 14.4401H4.37365C2.81975 14.4401 1.56006 13.1804 1.56006 11.6265V4.37365Z" fill="url(#paint0_radial_9564_57528)"/>
</g>
<path d="M7.98377 3.81433C6.19905 3.81433 4.75244 5.26094 4.75244 7.04566V10.2984C4.75244 10.6442 5.03277 10.9246 5.37857 10.9246H10.6558C10.9646 10.9246 11.2151 10.6741 11.2151 10.3653V7.04566C11.2151 5.26117 9.7685 3.81433 7.98377 3.81433ZM9.84376 7.02772L8.43141 8.21754C8.17648 8.43238 7.80365 8.43238 7.54872 8.21754L6.13637 7.02772C6.13637 6.01803 6.95498 5.19942 7.96467 5.19942H8.01546C9.02515 5.19942 9.84376 6.01803 9.84376 7.02772Z" fill="#6D4AFF"/>
<path d="M7.98377 3.81433C6.19905 3.81433 4.75244 5.26094 4.75244 7.04566V10.2984C4.75244 10.6442 5.03277 10.9246 5.37857 10.9246H10.6558C10.9646 10.9246 11.2151 10.6741 11.2151 10.3653V7.04566C11.2151 5.26117 9.7685 3.81433 7.98377 3.81433ZM9.84376 7.02772L8.43141 8.21754C8.17648 8.43238 7.80365 8.43238 7.54872 8.21754L6.13637 7.02772C6.13637 6.01803 6.95498 5.19942 7.96467 5.19942H8.01546C9.02515 5.19942 9.84376 6.01803 9.84376 7.02772Z" fill="url(#paint1_linear_9564_57528)"/>
<g filter="url(#filter1_i_9564_57528)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.43389 8.23199C8.28664 8.35119 7.90378 8.51808 7.55037 8.23199C7.19696 7.94589 6.4635 7.31341 6.14094 7.03292H6.14254L6.13637 7.02772C6.13637 6.01803 6.95498 5.19942 7.96467 5.19942H8.01546C9.02515 5.19942 9.84376 6.01803 9.84376 7.02772L9.83759 7.03292H9.84331V10.9246H10.6558C10.9646 10.9246 11.2151 10.6741 11.2151 10.3653V7.04566C11.2151 5.26117 9.7685 3.81433 7.98377 3.81433C6.19905 3.81433 4.75244 5.26094 4.75244 7.04566V7.24987L6.75099 8.96825C6.89825 9.1085 7.28531 9.30483 7.65555 8.96825C8.02579 8.63167 8.32871 8.33717 8.43389 8.23199Z" fill="url(#paint2_radial_9564_57528)"/>
</g>
<defs>
<filter id="filter0_dii_9564_57528" x="1.24756" y="1.37256" width="13.5049" height="13.6925" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="0.3125"/>
<feGaussianBlur stdDeviation="0.15625"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9564_57528"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9564_57528" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="0.15625" dy="0.1875"/>
<feGaussianBlur stdDeviation="0.0625"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
<feBlend mode="normal" in2="shape" result="effect2_innerShadow_9564_57528"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.09375" dy="-0.1875"/>
<feGaussianBlur stdDeviation="0.09375"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.0470588 0 0 0 0 0.0470588 0 0 0 0 0.0784314 0 0 0 0.04 0"/>
<feBlend mode="normal" in2="effect2_innerShadow_9564_57528" result="effect3_innerShadow_9564_57528"/>
</filter>
<filter id="filter1_i_9564_57528" x="4.6482" y="3.81433" width="6.56688" height="7.40105" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.104237" dy="0.29082"/>
<feGaussianBlur stdDeviation="0.781774"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9564_57528"/>
</filter>
<radialGradient id="paint0_radial_9564_57528" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(5.86178 2.12607) rotate(59.8421) scale(15.7982)">
<stop stop-color="white"/>
<stop offset="0.639344" stop-color="#F5F4F2"/>
<stop offset="1" stop-color="#D1CFCD"/>
</radialGradient>
<linearGradient id="paint1_linear_9564_57528" x1="4.98384" y1="11.745" x2="5.9515" y2="9.01027" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint2_radial_9564_57528" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(10.8341 11.5136) rotate(-138.034) scale(8.17928 6.68752)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
dist/raw/mac_icon_256x256.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

57
dist/raw/mac_icon_256x256.svg vendored Normal file
View File

@ -0,0 +1,57 @@
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_dii_9564_57495)">
<path d="M25 70C25 45.1472 45.1472 25 70 25H186C210.853 25 231 45.1472 231 70V186C231 210.853 210.853 231 186 231H70C45.1472 231 25 210.853 25 186V70Z" fill="url(#paint0_radial_9564_57495)"/>
</g>
<path d="M127.762 66.4116C101.501 66.4116 80.2153 87.6974 80.2153 113.958V161.821C80.2153 166.909 84.3401 171.034 89.4284 171.034H167.08C171.623 171.034 175.309 167.348 175.309 162.805V113.958C175.309 87.7008 154.023 66.4116 127.762 66.4116ZM155.131 113.694L134.349 131.202C130.598 134.363 125.112 134.363 121.361 131.202L100.579 113.694C100.579 98.8375 112.624 86.7922 127.481 86.7922H128.228C143.085 86.7922 155.131 98.8375 155.131 113.694Z" fill="#6D4AFF"/>
<path d="M127.762 66.4116C101.501 66.4116 80.2153 87.6974 80.2153 113.958V161.821C80.2153 166.909 84.3401 171.034 89.4284 171.034H167.08C171.623 171.034 175.309 167.348 175.309 162.805V113.958C175.309 87.7008 154.023 66.4116 127.762 66.4116ZM155.131 113.694L134.349 131.202C130.598 134.363 125.112 134.363 121.361 131.202L100.579 113.694C100.579 98.8375 112.624 86.7922 127.481 86.7922H128.228C143.085 86.7922 155.131 98.8375 155.131 113.694Z" fill="url(#paint1_linear_9564_57495)"/>
<g filter="url(#filter1_i_9564_57495)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M134.384 131.413C132.217 133.167 126.583 135.623 121.383 131.413C116.183 127.204 105.391 117.897 100.645 113.77H100.669L100.579 113.694C100.579 98.8375 112.624 86.7922 127.481 86.7922H128.228C143.085 86.7922 155.131 98.8375 155.131 113.694L155.041 113.77H155.122V171.034H167.08C171.623 171.034 175.309 167.348 175.309 162.805V113.958C175.309 87.7008 154.023 66.4116 127.762 66.4116C101.501 66.4116 80.2153 87.6974 80.2153 113.958V116.964L109.621 142.247C111.788 144.311 117.483 147.199 122.931 142.247C128.379 137.294 132.836 132.961 134.384 131.413Z" fill="url(#paint2_radial_9564_57495)"/>
</g>
<defs>
<filter id="filter0_dii_9564_57495" x="20" y="22" width="216" height="219" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="5"/>
<feGaussianBlur stdDeviation="2.5"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9564_57495"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9564_57495" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="2.5" dy="3"/>
<feGaussianBlur stdDeviation="1"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
<feBlend mode="normal" in2="shape" result="effect2_innerShadow_9564_57495"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-1.5" dy="-3"/>
<feGaussianBlur stdDeviation="1.5"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.0470588 0 0 0 0 0.0470588 0 0 0 0 0.0784314 0 0 0 0.04 0"/>
<feBlend mode="normal" in2="effect2_innerShadow_9564_57495" result="effect3_innerShadow_9564_57495"/>
</filter>
<filter id="filter1_i_9564_57495" x="78.6816" y="66.4116" width="96.627" height="108.901" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-1.53377" dy="4.27921"/>
<feGaussianBlur stdDeviation="11.5032"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9564_57495"/>
</filter>
<radialGradient id="paint0_radial_9564_57495" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(93.8008 34.0527) rotate(59.8421) scale(252.674)">
<stop stop-color="white"/>
<stop offset="0.639344" stop-color="#F5F4F2"/>
<stop offset="1" stop-color="#D1CFCD"/>
</radialGradient>
<linearGradient id="paint1_linear_9564_57495" x1="83.6202" y1="183.105" x2="97.8587" y2="142.866" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint2_radial_9564_57495" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(169.702 179.701) rotate(-138.034) scale(120.352 98.4021)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
dist/raw/mac_icon_32x32.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

57
dist/raw/mac_icon_32x32.svg vendored Normal file
View File

@ -0,0 +1,57 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_dii_9564_57517)">
<path d="M3 8.625C3 5.5184 5.5184 3 8.625 3H23.125C26.2316 3 28.75 5.5184 28.75 8.625V23.125C28.75 26.2316 26.2316 28.75 23.125 28.75H8.625C5.5184 28.75 3 26.2316 3 23.125V8.625Z" fill="url(#paint0_radial_9564_57517)"/>
</g>
<path d="M15.97 8.22668C12.6556 8.22668 9.96899 10.9132 9.96899 14.2277V20.2686C9.96899 20.9108 10.4896 21.4314 11.1318 21.4314H20.9325C21.5059 21.4314 21.9711 20.9662 21.9711 20.3928V14.2277C21.9711 10.9137 19.2845 8.22668 15.97 8.22668ZM19.4243 14.1944L16.8014 16.4041C16.3279 16.8031 15.6355 16.8031 15.1621 16.4041L12.5391 14.1944C12.5391 12.3193 14.0594 10.799 15.9346 10.799H16.0289C17.904 10.799 19.4243 12.3193 19.4243 14.1944Z" fill="#6D4AFF"/>
<path d="M15.97 8.22668C12.6556 8.22668 9.96899 10.9132 9.96899 14.2277V20.2686C9.96899 20.9108 10.4896 21.4314 11.1318 21.4314H20.9325C21.5059 21.4314 21.9711 20.9662 21.9711 20.3928V14.2277C21.9711 10.9137 19.2845 8.22668 15.97 8.22668ZM19.4243 14.1944L16.8014 16.4041C16.3279 16.8031 15.6355 16.8031 15.1621 16.4041L12.5391 14.1944C12.5391 12.3193 14.0594 10.799 15.9346 10.799H16.0289C17.904 10.799 19.4243 12.3193 19.4243 14.1944Z" fill="url(#paint1_linear_9564_57517)"/>
<g filter="url(#filter1_i_9564_57517)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.8058 16.4308C16.5323 16.6522 15.8213 16.9621 15.165 16.4308C14.5086 15.8995 13.1465 14.7249 12.5475 14.204H12.5505L12.5391 14.1944C12.5391 12.3193 14.0594 10.799 15.9346 10.799H16.0289C17.904 10.799 19.4243 12.3193 19.4243 14.1944L19.4129 14.204H19.4233V21.4314H20.9325C21.5059 21.4314 21.9711 20.9662 21.9711 20.3928V14.2277C21.9711 10.9137 19.2845 8.22668 15.97 8.22668C12.6556 8.22668 9.96899 10.9132 9.96899 14.2277V14.6071L13.6804 17.7982C13.9539 18.0586 14.6727 18.4233 15.3603 17.7982C16.0479 17.1731 16.6105 16.6262 16.8058 16.4308Z" fill="url(#paint2_radial_9564_57517)"/>
</g>
<defs>
<filter id="filter0_dii_9564_57517" x="2.375" y="2.625" width="27" height="27.375" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="0.625"/>
<feGaussianBlur stdDeviation="0.3125"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9564_57517"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9564_57517" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="0.3125" dy="0.375"/>
<feGaussianBlur stdDeviation="0.125"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
<feBlend mode="normal" in2="shape" result="effect2_innerShadow_9564_57517"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.1875" dy="-0.375"/>
<feGaussianBlur stdDeviation="0.1875"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.0470588 0 0 0 0 0.0470588 0 0 0 0 0.0784314 0 0 0 0.04 0"/>
<feBlend mode="normal" in2="effect2_innerShadow_9564_57517" result="effect3_innerShadow_9564_57517"/>
</filter>
<filter id="filter1_i_9564_57517" x="9.77541" y="8.22668" width="12.1958" height="13.7448" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.193582" dy="0.540094"/>
<feGaussianBlur stdDeviation="1.45187"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9564_57517"/>
</filter>
<radialGradient id="paint0_radial_9564_57517" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(11.6001 4.13159) rotate(59.8421) scale(31.5842)">
<stop stop-color="white"/>
<stop offset="0.639344" stop-color="#F5F4F2"/>
<stop offset="1" stop-color="#D1CFCD"/>
</radialGradient>
<linearGradient id="paint1_linear_9564_57517" x1="10.3987" y1="22.955" x2="12.1958" y2="17.8763" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint2_radial_9564_57517" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(21.2634 22.5253) rotate(-138.034) scale(15.1901 12.4197)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
dist/raw/mac_icon_512x512.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

57
dist/raw/mac_icon_512x512.svg vendored Normal file
View File

@ -0,0 +1,57 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_dii_9564_57484)">
<path d="M50 140C50 90.2944 90.2944 50 140 50H372C421.706 50 462 90.2944 462 140V372C462 421.706 421.706 462 372 462H140C90.2944 462 50 421.706 50 372V140Z" fill="url(#paint0_radial_9564_57484)"/>
</g>
<path d="M255.525 132.823C203.003 132.823 160.431 175.395 160.431 227.917V323.641C160.431 333.818 168.681 342.067 178.857 342.067H334.16C343.246 342.067 350.618 334.696 350.618 325.609V227.917C350.618 175.402 308.047 132.823 255.525 132.823ZM310.261 227.389L268.698 262.403C261.196 268.726 250.224 268.726 242.722 262.403L201.158 227.389C201.158 197.675 225.249 173.585 254.962 173.585H256.457C286.171 173.585 310.261 197.675 310.261 227.389Z" fill="#6D4AFF"/>
<path d="M255.525 132.823C203.003 132.823 160.431 175.395 160.431 227.917V323.641C160.431 333.818 168.681 342.067 178.857 342.067H334.16C343.246 342.067 350.618 334.696 350.618 325.609V227.917C350.618 175.402 308.046 132.823 255.525 132.823ZM310.261 227.389L268.698 262.403C261.196 268.726 250.224 268.726 242.722 262.403L201.158 227.389C201.158 197.675 225.249 173.585 254.962 173.585H256.457C286.171 173.585 310.261 197.675 310.261 227.389Z" fill="url(#paint1_linear_9564_57484)"/>
<g filter="url(#filter1_i_9564_57484)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M268.768 262.827C264.434 266.335 253.167 271.246 242.767 262.827C232.367 254.407 210.782 235.794 201.289 227.54H201.337L201.158 227.389C201.158 197.675 225.249 173.585 254.962 173.585H256.457C286.171 173.585 310.261 197.675 310.261 227.389L310.082 227.54H310.245V342.067H334.16C343.246 342.067 350.618 334.696 350.618 325.609V227.917C350.618 175.402 308.047 132.823 255.525 132.823C203.003 132.823 160.431 175.395 160.431 227.917V233.927L219.242 284.494C223.576 288.621 234.967 294.399 245.862 284.494C256.758 274.589 265.672 265.922 268.768 262.827Z" fill="url(#paint2_radial_9564_57484)"/>
</g>
<defs>
<filter id="filter0_dii_9564_57484" x="40" y="44" width="432" height="438" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="10"/>
<feGaussianBlur stdDeviation="5"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9564_57484"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9564_57484" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="5" dy="6"/>
<feGaussianBlur stdDeviation="2"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
<feBlend mode="normal" in2="shape" result="effect2_innerShadow_9564_57484"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-3" dy="-6"/>
<feGaussianBlur stdDeviation="3"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.0470588 0 0 0 0 0.0470588 0 0 0 0 0.0784314 0 0 0 0.04 0"/>
<feBlend mode="normal" in2="effect2_innerShadow_9564_57484" result="effect3_innerShadow_9564_57484"/>
</filter>
<filter id="filter1_i_9564_57484" x="157.364" y="132.823" width="193.255" height="217.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-3.06753" dy="8.55841"/>
<feGaussianBlur stdDeviation="23.0065"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9564_57484"/>
</filter>
<radialGradient id="paint0_radial_9564_57484" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(187.602 68.1054) rotate(59.8421) scale(505.347)">
<stop stop-color="white"/>
<stop offset="0.639344" stop-color="#F5F4F2"/>
<stop offset="1" stop-color="#D1CFCD"/>
</radialGradient>
<linearGradient id="paint1_linear_9564_57484" x1="167.241" y1="366.211" x2="195.718" y2="285.732" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint2_radial_9564_57484" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(339.404 359.401) rotate(-138.034) scale(240.704 196.804)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 5.0 KiB

32
dist/raw/win+lin_icon_16x16.svg vendored Normal file
View File

@ -0,0 +1,32 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_9588_57915)">
<path d="M7.9607 -0.00488281C3.9452 -0.00488281 0.69043 3.24988 0.69043 7.26539V14.5839C0.69043 15.3619 1.32115 15.9926 2.09919 15.9926H13.9727C14.6674 15.9926 15.231 15.429 15.231 14.7344V7.26539C15.231 3.25041 11.9762 -0.00488281 7.9607 -0.00488281ZM12.1456 7.22502L8.96786 9.90202C8.39429 10.3854 7.55543 10.3854 6.98186 9.90202L3.80416 7.22502C3.80416 4.95329 5.64598 3.11147 7.91771 3.11147H8.032C10.3037 3.11147 12.1456 4.95329 12.1456 7.22502Z" fill="#6D4AFF"/>
<path d="M7.9607 -0.00488281C3.9452 -0.00488281 0.69043 3.24988 0.69043 7.26539V14.5839C0.69043 15.3619 1.32115 15.9926 2.09919 15.9926H13.9727C14.6674 15.9926 15.231 15.429 15.231 14.7344V7.26539C15.231 3.25041 11.9762 -0.00488281 7.9607 -0.00488281ZM12.1456 7.22502L8.96786 9.90202C8.39429 10.3854 7.55543 10.3854 6.98186 9.90202L3.80416 7.22502C3.80416 4.95329 5.64598 3.11147 7.91771 3.11147H8.032C10.3037 3.11147 12.1456 4.95329 12.1456 7.22502Z" fill="url(#paint0_linear_9588_57915)"/>
<g filter="url(#filter0_i_9588_57915)">
<path d="M8.97323 9.93257C8.64192 10.2008 7.78051 10.5763 6.98537 9.93257C6.19022 9.28888 4.53998 7.86583 3.81426 7.23476H3.81805L3.80416 7.22306C3.80416 4.95133 5.64598 3.10952 7.91771 3.10952H8.032C10.3037 3.10952 12.1456 4.95133 12.1456 7.22306L12.1317 7.23476H12.1443V15.9907H13.9727C14.6674 15.9907 15.231 15.4271 15.231 14.7324V7.26343C15.231 3.24845 11.9762 -0.00683594 7.9607 -0.00683594C3.9452 -0.00683594 0.69043 3.24793 0.69043 7.26343V7.72306L5.18683 11.5891C5.51814 11.9047 6.38901 12.3464 7.22202 11.5891C8.05502 10.8318 8.73658 10.1692 8.97323 9.93257Z" fill="url(#paint1_radial_9588_57915)"/>
</g>
</g>
<defs>
<filter id="filter0_i_9588_57915" x="0.455905" y="-0.00683594" width="14.7755" height="16.6514" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.234525" dy="0.654324"/>
<feGaussianBlur stdDeviation="1.75894"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9588_57915"/>
</filter>
<linearGradient id="paint0_linear_9588_57915" x1="1.21106" y1="17.8385" x2="3.38824" y2="11.6856" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint1_radial_9588_57915" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(14.3736 17.3159) rotate(-138.034) scale(18.4028 15.0465)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
<clipPath id="clip0_9588_57915">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

32
dist/raw/win+lin_icon_24x24.svg vendored Normal file
View File

@ -0,0 +1,32 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_9588_57912)">
<path d="M11.8651 -0.0078125C6.09279 -0.0078125 1.41406 4.67091 1.41406 10.4432V20.9636C1.41406 22.082 2.32072 22.9886 3.43915 22.9886H20.5073C21.5059 22.9886 22.3161 22.1785 22.3161 21.1799V10.4432C22.3161 4.67167 17.6374 -0.0078125 11.8651 -0.0078125ZM17.8808 10.3852L13.3129 14.2334C12.4884 14.9282 11.2825 14.9282 10.458 14.2334L5.89005 10.3852C5.89005 7.11956 8.53767 4.47195 11.8033 4.47195H11.9676C15.2332 4.47195 17.8808 7.11956 17.8808 10.3852Z" fill="#6D4AFF"/>
<path d="M11.8651 -0.0078125C6.09279 -0.0078125 1.41406 4.67091 1.41406 10.4432V20.9636C1.41406 22.082 2.32072 22.9886 3.43915 22.9886H20.5073C21.5059 22.9886 22.3161 22.1785 22.3161 21.1799V10.4432C22.3161 4.67167 17.6374 -0.0078125 11.8651 -0.0078125ZM17.8808 10.3852L13.3129 14.2334C12.4884 14.9282 11.2825 14.9282 10.458 14.2334L5.89005 10.3852C5.89005 7.11956 8.53767 4.47195 11.8033 4.47195H11.9676C15.2332 4.47195 17.8808 7.11956 17.8808 10.3852Z" fill="url(#paint0_linear_9588_57912)"/>
<g filter="url(#filter0_i_9588_57912)">
<path d="M13.3213 14.28C12.8451 14.6656 11.6068 15.2053 10.4638 14.28C9.32078 13.3547 6.94856 11.3091 5.90533 10.4019H5.91095L5.89103 10.3852C5.89103 7.11956 8.53864 4.47195 11.8043 4.47195H11.9686C15.2342 4.47195 17.8818 7.11956 17.8818 10.3852L17.8619 10.4019H17.8798V22.9886H20.5083C21.5069 22.9886 22.3171 22.1785 22.3171 21.1799V10.4432C22.3171 4.67167 17.6383 -0.0078125 11.8661 -0.0078125C6.09377 -0.0078125 1.41504 4.67091 1.41504 10.4432V11.1041L7.8784 16.6613C8.35466 17.1149 9.60653 17.7499 10.804 16.6613C12.0014 15.5727 12.9812 14.6202 13.3213 14.28Z" fill="url(#paint1_radial_9588_57912)"/>
</g>
</g>
<defs>
<filter id="filter0_i_9588_57912" x="1.07791" y="-0.0078125" width="21.2395" height="23.9367" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.337129" dy="0.940591"/>
<feGaussianBlur stdDeviation="2.52847"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9588_57912"/>
</filter>
<linearGradient id="paint0_linear_9588_57912" x1="2.16247" y1="25.6421" x2="5.29216" y2="16.7973" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint1_radial_9588_57912" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(21.0847 24.8937) rotate(-138.034) scale(26.454 21.6293)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
<clipPath id="clip0_9588_57912">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
dist/raw/win+lin_icon_256x256.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

32
dist/raw/win+lin_icon_256x256.svg vendored Normal file
View File

@ -0,0 +1,32 @@
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_9588_57903)">
<path d="M127.416 -0.0898438C63.1423 -0.0898438 11.0449 51.9864 11.0449 116.234V233.331C11.0449 245.779 21.1405 255.871 33.5942 255.871H223.647C234.767 255.871 243.788 246.853 243.788 235.738V116.234C243.788 51.9948 191.691 -0.0898438 127.416 -0.0898438ZM194.401 115.589L143.537 158.421C134.357 166.155 120.929 166.155 111.749 158.421L60.8849 115.589C60.8849 79.2409 90.3659 49.7718 126.728 49.7718H128.558C164.92 49.7718 194.401 79.2409 194.401 115.589Z" fill="#6D4AFF"/>
<path d="M127.416 -0.0898438C63.1423 -0.0898438 11.0449 51.9864 11.0449 116.234V233.331C11.0449 245.779 21.1405 255.871 33.5942 255.871H223.647C234.767 255.871 243.788 246.853 243.788 235.738V116.234C243.788 51.9948 191.691 -0.0898438 127.416 -0.0898438ZM194.401 115.589L143.537 158.421C134.357 166.155 120.929 166.155 111.749 158.421L60.8849 115.589C60.8849 79.2409 90.3659 49.7718 126.728 49.7718H128.558C164.92 49.7718 194.401 79.2409 194.401 115.589Z" fill="url(#paint0_linear_9588_57903)"/>
<g filter="url(#filter0_i_9588_57903)">
<path d="M143.572 158.939C138.271 163.23 124.489 169.238 111.766 158.939C99.0439 148.64 72.6401 125.871 61.0285 115.774H61.0868L60.8676 115.59C60.8676 79.2418 90.3367 49.7728 126.684 49.7728H128.513C164.861 49.7728 194.33 79.2418 194.33 115.59L194.111 115.774H194.31V255.872H223.564C234.679 255.872 243.697 246.854 243.697 235.739V116.235C243.697 51.9958 191.62 -0.0888672 127.372 -0.0888672C63.1241 -0.0888672 11.0479 51.9874 11.0479 116.235V123.587L82.9896 185.444C88.2906 190.492 102.224 197.56 115.553 185.444C128.881 173.327 139.786 162.726 143.572 158.939Z" fill="url(#paint1_radial_9588_57903)"/>
</g>
</g>
<defs>
<filter id="filter0_i_9588_57903" x="7.29545" y="-0.0888672" width="236.401" height="266.43" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-3.7524" dy="10.4692"/>
<feGaussianBlur stdDeviation="28.143"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9588_57903"/>
</filter>
<linearGradient id="paint0_linear_9588_57903" x1="19.3784" y1="285.405" x2="54.2022" y2="186.949" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint1_radial_9588_57903" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(229.979 277.075) rotate(-138.034) scale(294.445 240.743)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
<clipPath id="clip0_9588_57903">
<rect width="256" height="256" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

32
dist/raw/win+lin_icon_32x32.svg vendored Normal file
View File

@ -0,0 +1,32 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_9588_57909)">
<path d="M15.9709 -0.0107422C8.19088 -0.0107422 1.88477 6.29537 1.88477 14.0754V28.255C1.88477 29.7625 3.10678 30.9845 4.61423 30.9845H27.6191C28.9651 30.9845 30.0571 29.8925 30.0571 28.5465V14.0754C30.0571 6.29638 23.751 -0.0107422 15.9709 -0.0107422ZM24.0791 13.9972L17.9223 19.1839C16.811 20.1205 15.1857 20.1205 14.0744 19.1839L7.91762 13.9972C7.91762 9.59571 11.4861 6.02719 15.8876 6.02719H16.1091C20.5105 6.02719 24.0791 9.59571 24.0791 13.9972Z" fill="#6D4AFF"/>
<path d="M15.9709 -0.0107422C8.19088 -0.0107422 1.88477 6.29537 1.88477 14.0754V28.255C1.88477 29.7625 3.10678 30.9845 4.61423 30.9845H27.6191C28.9651 30.9845 30.0571 29.8925 30.0571 28.5465V14.0754C30.0571 6.29638 23.751 -0.0107422 15.9709 -0.0107422ZM24.0791 13.9972L17.9223 19.1839C16.811 20.1205 15.1857 20.1205 14.0744 19.1839L7.91762 13.9972C7.91762 9.59571 11.4861 6.02719 15.8876 6.02719H16.1091C20.5105 6.02719 24.0791 9.59571 24.0791 13.9972Z" fill="url(#paint0_linear_9588_57909)"/>
<g filter="url(#filter0_i_9588_57909)">
<path d="M17.9322 19.2467C17.2903 19.7663 15.6213 20.4938 14.0807 19.2467C12.5401 17.9996 9.34279 15.2424 7.9367 14.0197H7.94435L7.91762 13.9972C7.91762 9.59571 11.4861 6.02719 15.8876 6.02719H16.1091C20.5105 6.02719 24.0791 9.59571 24.0791 13.9972L24.0523 14.0197H24.0762V30.9845H27.6191C28.9651 30.9845 30.0571 29.8925 30.0571 28.5465V14.0754C30.0571 6.29638 23.751 -0.0107422 15.9709 -0.0107422C8.19088 -0.0107422 1.88477 6.29537 1.88477 14.0754V14.9662L10.596 22.4563C11.238 23.0676 12.9253 23.9235 14.5392 22.4563C16.1532 20.989 17.4737 19.7052 17.9322 19.2467Z" fill="url(#paint1_radial_9588_57909)"/>
</g>
</g>
<defs>
<filter id="filter0_i_9588_57909" x="1.43037" y="-0.0107422" width="28.6263" height="32.2629" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.454392" dy="1.26775"/>
<feGaussianBlur stdDeviation="3.40794"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9588_57909"/>
</filter>
<linearGradient id="paint0_linear_9588_57909" x1="2.89348" y1="34.5608" x2="7.11177" y2="22.6396" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint1_radial_9588_57909" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(28.396 33.5521) rotate(-138.034) scale(35.6554 29.1525)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
<clipPath id="clip0_9588_57909">
<rect width="32" height="32" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

32
dist/raw/win+lin_icon_48x48.svg vendored Normal file
View File

@ -0,0 +1,32 @@
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_9588_57906)">
<path d="M23.8921 -0.0166016C11.9792 -0.0166016 2.32324 9.63938 2.32324 21.5523V43.2642C2.32324 45.5724 4.1944 47.4436 6.50263 47.4436H41.728C43.7889 47.4436 45.461 45.7715 45.461 43.7106V21.5523C45.461 9.64093 35.805 -0.0166016 23.8921 -0.0166016ZM36.3074 21.4325L26.8801 29.3744C25.1784 30.8085 22.6898 30.8085 20.9882 29.3744L11.5608 21.4325C11.5608 14.6929 17.025 9.22875 23.7646 9.22875H24.1036C30.8432 9.22875 36.3074 14.6929 36.3074 21.4325Z" fill="#6D4AFF"/>
<path d="M23.8921 -0.0166016C11.9792 -0.0166016 2.32324 9.63938 2.32324 21.5523V43.2642C2.32324 45.5724 4.1944 47.4436 6.50263 47.4436H41.728C43.7889 47.4436 45.461 45.7715 45.461 43.7106V21.5523C45.461 9.64093 35.805 -0.0166016 23.8921 -0.0166016ZM36.3074 21.4325L26.8801 29.3744C25.1784 30.8085 22.6898 30.8085 20.9882 29.3744L11.5608 21.4325C11.5608 14.6929 17.025 9.22875 23.7646 9.22875H24.1036C30.8432 9.22875 36.3074 14.6929 36.3074 21.4325Z" fill="url(#paint0_linear_9588_57906)"/>
<g filter="url(#filter0_i_9588_57906)">
<path d="M26.8954 29.4706C25.9125 30.2663 23.3569 31.3803 20.998 29.4706C18.639 27.561 13.7432 23.3392 11.5902 21.467H11.6017L11.5608 21.4325C11.5608 14.6929 17.025 9.22875 23.7646 9.22875H24.1036C30.8432 9.22875 36.3074 14.6929 36.3074 21.4325L36.2665 21.467H36.3032V47.4436H41.728C43.7889 47.4436 45.461 45.7715 45.461 43.7106V21.5523C45.461 9.64093 35.805 -0.0166016 23.8921 -0.0166016C11.9792 -0.0166016 2.32324 9.63938 2.32324 21.5523V22.9161L15.6622 34.3851C16.6451 35.3212 19.2287 36.6318 21.7 34.3851C24.1713 32.1385 26.1933 30.1727 26.8954 29.4706Z" fill="url(#paint1_radial_9588_57906)"/>
</g>
</g>
<defs>
<filter id="filter0_i_9588_57906" x="1.62747" y="-0.0166016" width="43.8335" height="49.4012" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-0.69577" dy="1.9412"/>
<feGaussianBlur stdDeviation="5.21827"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.462745 0 0 0 0 0.337255 0 0 0 0 1 0 0 0 0.24 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_9588_57906"/>
</filter>
<linearGradient id="paint0_linear_9588_57906" x1="3.8678" y1="52.9198" x2="10.3269" y2="34.6659" gradientUnits="userSpaceOnUse">
<stop stop-color="#28B0E8"/>
<stop offset="1" stop-color="#C5B7FF" stop-opacity="0"/>
</linearGradient>
<radialGradient id="paint1_radial_9588_57906" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.9175 51.3752) rotate(-138.034) scale(54.5959 44.6386)">
<stop stop-color="#E2DBFF"/>
<stop offset="1" stop-color="#6D4AFF"/>
</radialGradient>
<clipPath id="clip0_9588_57906">
<rect width="48" height="48" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 945 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 557 KiB

View File

@ -1,31 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1024 1024" style="enable-background:new 0 0 1024 1024;" xml:space="preserve">
<style type="text/css">
.st0{fill:#9397CD;}
.st1{fill:#262A33;}
.st2{fill:#FFFFFF;}
</style>
<g>
<circle class="st0" cx="512.2" cy="512.1" r="512"/>
</g>
<g>
<circle class="st1" cx="850" cy="850" r="174"/>
</g>
<g>
<path class="st2" d="M784.4,773.1h90.7c15.1,0,26.7,3.7,34.8,11.2s12.1,16.8,12.1,27.8c0,9.3-2.9,17.2-8.7,23.8
c-3.8,4.4-9.5,7.9-16.9,10.5c11.3,2.7,19.5,7.4,24.9,14c5.3,6.6,8,14.9,8,24.9c0,8.1-1.9,15.4-5.7,21.9s-8.9,11.6-15.5,15.4
c-4.1,2.4-10.2,4.1-18.4,5.1c-10.9,1.4-18.1,2.1-21.7,2.1h-83.6L784.4,773.1L784.4,773.1z M833.3,834.6h21.1
c7.6,0,12.8-1.3,15.8-3.9c3-2.6,4.4-6.4,4.4-11.3c0-4.6-1.5-8.1-4.4-10.7c-3-2.6-8.1-3.8-15.5-3.8h-21.4L833.3,834.6L833.3,834.6z
M833.3,896.2H858c8.3,0,14.2-1.5,17.6-4.4c3.4-3,5.1-6.9,5.1-11.9c0-4.6-1.7-8.4-5.1-11.2c-3.4-2.8-9.3-4.2-17.8-4.2h-24.6
L833.3,896.2L833.3,896.2z"/>
</g>
<g>
<path class="st2" d="M511,263c0,0-136.3-4.5-164.4,146.7v103c0,0,1.2,11,32.2,33.4c31,22.4,111.2,85.4,132.3,85.4
c21,0,101.3-63,132.3-85.4c31-22.4,32.2-33.4,32.2-33.4v-103C647.3,258.5,511,263,511,263z M604.3,465.9H511h-93.3v-56.1
c18.9-75.1,93.3-76.1,93.3-76.1s74.4,1,93.3,76.1V465.9z"/>
<path class="st2" d="M511,654.7c0,0-21.1-2.1-37.7-13.5C456.8,629.7,346.6,551,346.6,551v155.9c0,0,0.9,18.1,20.9,18.1
s143.5,0,143.5,0s123.5,0,143.5,0s20.9-18.1,20.9-18.1V551c0,0-110.2,78.8-126.8,90.2C532.1,652.7,511,654.7,511,654.7z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

79
utils/export_icons.sh Executable file
View File

@ -0,0 +1,79 @@
# Copyright (c) 2022 Proton AG
#
# This file is part of Proton Mail Bridge.
#
# Proton Mail Bridge is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Proton Mail Bridge is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Proton Mail Bridge. If not, see <https://www.gnu.org/licenses/>.
RAW_PATHS=./dist/raw
create_bitmaps(){
rm -f ${RAW_PATHS}/*_icon_*.png
export_png ${RAW_PATHS}/mac_icon_512x512.svg 384 1024
export_png ${RAW_PATHS}/mac_icon_512x512.svg 192 512
export_png ${RAW_PATHS}/mac_icon_512x512.svg 96 256
export_png ${RAW_PATHS}/mac_icon_256x256.svg 96 128
export_png ${RAW_PATHS}/mac_icon_32x32.svg 192 32
export_png ${RAW_PATHS}/mac_icon_32x32.svg 96 16
export_png ${RAW_PATHS}/win+lin_icon_256x256.svg 192 256
}
# Inkscape (more precisely cairo) doesn't support customization of rendering
# and direct output is too sharp. Therefore, we double DPI for inkscape export
# and then scale down to correct dimension.
export_png(){
inSVG=$1
dpi=$2
size=$3
dimensions=${size}x${size}
outPNG=$(echo "$inSVG" | sed 's/\(.*_icon\)_.*/\1/')_${dimensions}.png
echo "$inSVG -> $outPNG $dpi $dimensions"
inkscape "$inSVG" --export-filename=tmp.png --export-dpi "$dpi"
file tmp.png
convert tmp.png -resize "$dimensions" "$outPNG"
file "$outPNG"
rm tmp.png
}
create_mac_icon(){
out=./dist/Bridge.icns
rm -f ${out}
png2icns ${out} \
${RAW_PATHS}/mac_icon_{1024x1024,512x512,256x256,128x128,32x32,16x16}.png
}
create_windows_icon(){
out=./dist/bridge.ico
rm -f ${out}
convert \
${RAW_PATHS}/win+lin_icon_256x256.png \
-define icon:auto-resize=256,128,64,48,32,16 ${out}
}
create_linux_icon(){
out=./dist/bridge.svg
rm -f ${out}
cp ${RAW_PATHS}/win+lin_icon_256x256.svg ${out}
}
create_bitmaps
create_mac_icon
create_windows_icon
create_linux_icon