Skip to content

Commit

Permalink
Update the logo with another font
Browse files Browse the repository at this point in the history
Fix #6109
  • Loading branch information
charlag committed Nov 9, 2023
1 parent 3092ee9 commit 1f441ab
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions src/gui/base/Logo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,25 @@ import { assertMainOrNodeBoot } from "../../api/common/Env"
assertMainOrNodeBoot()

export function getLogoSvg(highlightColor: string, textColor: string): string {
return `<svg enable-background="new 0 0 1280 800" preserveAspectRatio="xMinYMid" version="1.1" viewBox="0 0 1054.5 236.49" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(-132.63 -222.8)" fill="${textColor}"><g fill="${textColor}">
<path d="m494.02 299.86h-42.696v-8.082h94.178v8.082h-42.696v121.94h-8.785v-121.94z"/>
<path d="m543.21 396.5v-66.943h8.434v65.889c0 14.057 6.15 20.908 20.206 20.908 12.827 0 23.544-6.676 34.965-17.57v-69.228h8.434v92.245h-8.434v-15.285c-10.191 9.662-22.139 17.219-35.668 17.219-19.152-1e-3 -27.937-10.543-27.937-27.235z"/>
<path d="m652.32 401.24v-64.133h-16.165v-7.555h16.165v-33.56h8.434v33.56h24.071v7.555h-24.071v62.902c0 9.84 3.339 15.463 14.935 15.463 3.515 0 7.028-0.352 9.664-1.23v7.906c-2.987 0.527-6.501 0.879-10.366 0.879-15.287 0-22.667-6.15-22.667-21.787z"/>
<path d="m703.27 400.54c0-17.57 14.935-30.749 63.43-38.831v-5.623c0-14.056-7.38-21.084-20.03-21.084-15.287 0-25.478 5.974-35.845 15.287l-4.919-5.271c11.421-10.542 23.192-17.395 40.938-17.395 19.152 0 28.289 10.894 28.289 27.937v43.399c0 11.246 0.703 18.097 2.636 22.841h-8.961c-1.23-3.865-2.108-8.434-2.108-13.705-11.245 9.664-23.545 15.287-37.426 15.287-16.868 0-26.004-8.785-26.004-22.842zm63.429-0.703v-31.803c-44.98 7.907-54.996 18.976-54.996 31.978 0 10.367 6.853 15.99 18.273 15.99 13.706 1e-3 26.18-5.974 36.723-16.165z"/>
</g><g transform="translate(316.06 540.89)" aria-label="mail"><path d="m564.99-197.45q5.9746-10.737 14.287-15.846 8.3125-5.1087 19.569-5.1087 15.153 0 23.379 10.65 8.2259 10.564 8.2259 30.133v58.534h-16.019v-58.014q0-13.941-4.9355-20.695-4.9355-6.7539-15.066-6.7539-12.382 0-19.569 8.2259-7.1868 8.2259-7.1868 22.426v54.81h-16.019v-58.014q0-14.027-4.9355-20.695-4.9355-6.7539-15.24-6.7539-12.209 0-19.396 8.3125-7.1868 8.2259-7.1868 22.34v54.81h-16.019v-96.979h16.019v15.066q5.4551-8.9186 13.075-13.161t18.097-4.2428q10.564 0 17.924 5.3685 7.4466 5.3685 10.997 15.586z"/><path d="m706.3-167.84q-19.309 0-26.756 4.416t-7.4466 15.066q0 8.4857 5.5417 13.508 5.6282 4.9355 15.24 4.9355 13.248 0 21.214-9.3516 8.0527-9.4381 8.0527-25.024v-3.5501zm31.778-6.5807v55.33h-15.932v-14.72q-5.4551 8.832-13.594 13.075-8.1393 4.1562-19.915 4.1562-14.893 0-23.725-8.3125-8.7454-8.3991-8.7454-22.426 0-16.365 10.91-24.678 10.997-8.3125 32.73-8.3125h22.34v-1.5586q0-10.997-7.2734-16.971-7.1868-6.0612-20.262-6.0612-8.3125 0-16.192 1.9915-7.8796 1.9915-15.153 5.9746v-14.72q8.7454-3.3769 16.971-5.0221 8.2259-1.7318 16.019-1.7318 21.041 0 31.432 10.91 10.391 10.91 10.391 33.077z"/><path d="m770.9-216.07h15.932v96.979h-15.932zm0-37.753h15.932v20.175h-15.932z"/><path d="m820.17-253.82h15.932v134.73h-15.932z"/></g>
return `<svg viewBox="0 0 2286.2 567.4" xmlns="http://www.w3.org/2000/svg">
<path style="fill: ${highlightColor};"
d="m55.3 0.5c-30.3 0-54.8 24.5-54.8 54.8v506.3c0 1.9 0.1 3.9 0.3 5.7 20.4-7.6 42-15.9 64.8-25 159-63.5 289-117.4 289.1-178.4 0-2-0.1-3.9-0.4-5.9-8.2-60.2-152-78.8-151.8-106.4 0-1.5 0.4-3 1.3-4.5 17.3-30.2 85.7-28.8 110.9-30.9 25.2-2.2 84.4-1.7 87.2-19.8 0.1-0.5 0.1-1.1 0.1-1.7 0.1-16.8-40.7-23.3-40.7-23.3s49.5 7.4 49.3 26.6c0 1-0.1 1.9-0.4 2.9-5.3 20.7-48.9 24.6-77.6 26-27.2 1.4-68.7 4.5-68.8 17.8 0 0.8 0.1 1.6 0.4 2.4 6.5 19.4 158.4 28.8 255.6 79.3 55.9 29 83.8 77.7 96.5 128v-399.1c0-30.3-24.5-54.8-54.8-54.8h-506.2z"/>
<g style="fill: ${textColor};">
<path d="m989.6 185.4h-107v286h-22.2v-286h-107.6v-18.7h236.9v18.7h-0.1z"/>
<path
d="m1146.6 257.1v214.3h-11.4c-3.6 0-5.7-1.9-6.2-5.6l-1.9-31.9c-9.9 12.3-21.4 22.2-34.3 29.7s-27.5 11.2-43.4 11.2c-11.9 0-22.3-1.9-31.2-5.6s-16.3-9.1-22.2-16.2c-5.9-7-10.3-15.5-13.3-25.4s-4.5-21.1-4.5-33.6v-137h20.7v137c0 20.1 4.6 35.8 13.8 47.3 9.2 11.4 23.2 17.1 42 17.1 13.9 0 26.9-3.5 39.1-10.7 12.1-7.1 22.9-17 32.4-29.6v-161h20.4z"/>
<path
d="m1275.6 474.8c-14.5 0-25.8-4-33.9-12.1s-12.2-20.5-12.2-37.2v-146.5h-30.8c-1.6 0-2.9-0.4-3.9-1.3s-1.5-2.1-1.5-3.7v-8l36.6-2.6 5.2-76.7c0.3-1.3 0.9-2.4 1.7-3.5 0.9-1 2.1-1.5 3.7-1.5h9.7v81.8h67.6v15.5h-67.6v145.4c0 5.9 0.8 11 2.3 15.2s3.6 7.7 6.2 10.4c2.7 2.7 5.8 4.7 9.4 6s7.5 1.9 11.6 1.9c5.2 0 9.6-0.8 13.3-2.3s7-3.2 9.7-5 4.9-3.5 6.7-5c1.7-1.5 3.1-2.3 4.1-2.3 1.2 0 2.3 0.7 3.4 2.2l5.6 9c-5.5 6-12.4 10.9-20.8 14.5s-17 5.8-26.1 5.8z"/>
<path
d="m1358.5 287.4c11.2-11.2 23-19.7 35.3-25.4s26.3-8.6 42-8.6c11.5 0 21.5 1.8 30.2 5.5 8.6 3.7 15.8 8.9 21.4 15.7 5.7 6.8 9.9 15.1 12.8 24.8s4.3 20.5 4.3 32.4v139.5h-8.2c-4.3 0-7-2-8-6l-3-27.6c-5.9 5.7-11.7 10.9-17.6 15.5-5.8 4.6-11.9 8.5-18.2 11.6-6.3 3.2-13.1 5.6-20.5 7.3-7.3 1.7-15.4 2.6-24.1 2.6-7.3 0-14.4-1.1-21.3-3.2-6.9-2.2-13-5.5-18.4-9.9-5.4-4.5-9.7-10.2-12.9-17.1-3.2-7-4.8-15.3-4.8-25.1 0-9 2.6-17.4 7.8-25.2s13.3-14.5 24.3-20.2c11.1-5.7 25.2-10.3 42.5-13.8s38.1-5.5 62.3-6v-22.4c0-19.8-4.3-35.1-12.8-45.8s-21.2-16-38-16c-10.3 0-19.1 1.4-26.4 4.3s-13.4 6-18.4 9.5-9.1 6.6-12.3 9.5-5.8 4.3-8 4.3c-1.6 0-2.9-0.4-3.9-1.1s-1.9-1.7-2.6-2.8l-3.5-6.3zm126 80.4c-20.4 0.7-37.9 2.3-52.7 4.8-14.7 2.5-26.8 5.9-36.4 10.2s-16.6 9.4-21.2 15.4-6.9 12.7-6.9 20.3c0 7.2 1.2 13.4 3.6 18.6s5.5 9.5 9.5 12.9c3.9 3.4 8.5 5.8 13.7 7.4s10.6 2.4 16.2 2.4c8.3 0 16-0.9 22.9-2.7 7-1.8 13.4-4.3 19.4-7.5s11.5-7.1 16.7-11.5c5.2-4.5 10.3-9.3 15.3-14.4l-0.1-55.9z"/>
<path
d="m1567.2 471.3v-218.7h25.2c5.9 0 9.6 2.8 11 8.4l3 20.9c8-9.6 17-17.5 26.8-23.6s21.3-9.2 34.6-9.2c14.5 0 26.3 4 35.3 12s15.7 18.8 19.8 32.4c3.2-7.8 7.2-14.4 12.3-20 5-5.6 10.6-10.2 16.8-13.8s12.7-6.2 19.7-8c7-1.7 14-2.6 21.2-2.6 11.6 0 22 1.8 31.1 5.5s16.8 9 23.2 16c6.3 7 11.1 15.7 14.4 26.1 3.3 10.3 4.9 22.1 4.9 35.3v139.3h-42.2v-139.3c0-16.4-3.6-28.7-10.7-37s-17.5-12.5-31.1-12.5c-6 0-11.8 1-17.2 3.1s-10.2 5.2-14.3 9.4-7.3 9.3-9.7 15.5-3.6 13.3-3.6 21.5v139.3h-42.2v-139.3c0-16.9-3.4-29.4-10.1-37.5-6.8-8-16.7-12.1-29.7-12.1-9 0-17.4 2.4-25.2 7.1s-14.9 11.2-21.3 19.4v162.4h-42z"/>
<path
d="m1917.5 283.1c12.2-11.6 25.4-20.3 39.7-26.1 14.3-5.7 30-8.6 47.1-8.6 12.5 0 23.5 2 33.2 6.1s17.7 9.8 24.3 17.1 11.6 16.1 15 26.3 5.1 21.5 5.1 33.8v139.5h-18.7c-4.2 0-7.3-0.7-9.5-2-2.1-1.4-3.9-3.9-5.2-7.6l-4.5-19.2c-5.6 5.2-11.1 9.7-16.6 13.7s-11.2 7.3-17.1 10.1c-6 2.8-12.3 4.9-19.1 6.3s-14.2 2.2-22.4 2.2c-8.6 0-16.7-1.2-24.2-3.5s-14.1-6-19.7-10.9-10-11-13.2-18.3-4.8-15.9-4.8-25.6c0-8.6 2.3-16.9 7-24.9s12.3-15.1 22.8-21.4c10.6-6.3 24.3-11.5 41.3-15.5s37.9-6.3 62.8-6.9v-15.9c0-16.5-3.5-28.9-10.6-37-7-8.2-17.4-12.3-31-12.3-9.2 0-16.9 1.2-23.2 3.5s-11.6 4.8-16.2 7.6c-4.5 2.8-8.5 5.3-11.8 7.7-3.4 2.3-6.9 3.5-10.4 3.5-2.9 0-5.3-0.8-7.4-2.4s-3.8-3.5-5.1-5.6l-7.6-13.7zm123.2 91.1c-17.1 0.6-31.6 1.9-43.5 4s-21.6 4.8-29.1 8.3-12.8 7.5-16.2 12.2-4.9 9.9-4.9 15.6 0.9 10.2 2.7 14.1c1.8 4 4.2 7.2 7.3 9.7s6.7 4.3 10.9 5.5 8.7 1.7 13.6 1.7c6.5 0 12.4-0.7 17.8-1.9 5.4-1.3 10.4-3.1 15.2-5.5 4.7-2.4 9.3-5.3 13.6-8.7 4.3-3.5 8.5-7.4 12.7-11.8l-0.1-43.2z"/>
<path
d="m2190.2 184.9c0 3.9-0.8 7.6-2.4 11.1s-3.7 6.6-6.4 9.3-5.8 4.7-9.4 6.2-7.3 2.3-11.2 2.3-7.5-0.8-11-2.3-6.5-3.6-9.1-6.2c-2.7-2.6-4.7-5.7-6.2-9.3-1.5-3.5-2.3-7.2-2.3-11.1s0.8-7.8 2.3-11.3 3.6-6.6 6.2-9.3c2.7-2.6 5.7-4.7 9.1-6.2s7.1-2.3 11-2.3 7.6 0.8 11.2 2.3 6.7 3.6 9.4 6.2c2.7 2.7 4.8 5.7 6.4 9.3 1.6 3.5 2.4 7.3 2.4 11.3zm-8 67.6v218.8h-42v-218.8h42z"/>
<path d="m2286.2 153.5v317.8h-42.2v-317.8h42.2z"/>
</g>
<g transform="translate(-132.63 -222.8)" fill="${highlightColor}">
<path id="a" d="m155.5 222.8c-12.64 0-22.875 10.246-22.875 22.872v211.23c0 0.801 0.046 1.608 0.123 2.388 8.5-3.167 17.524-6.629 27.054-10.436 66.336-26.48 120.57-48.994 120.62-74.415 0-0.814-0.056-1.636-0.172-2.458-3.43-25.098-63.407-32.879-63.324-44.381 7e-3 -0.611 0.18-1.25 0.548-1.889 7.205-12.619 35.743-12.015 46.253-12.907 10.519-0.913 35.206-0.724 36.399-8.244 0.035-0.232 0.057-0.463 0.057-0.695 0.028-6.987-16.977-9.726-16.977-9.726s20.635 3.083 20.579 11.11c0 0.393-0.048 0.8-0.158 1.214-2.222 8.624-20.379 10.246-32.386 10.835-11.356 0.569-28.648 1.861-28.707 7.408-7e-3 0.323 0.049 0.66 0.165 1.004 2.71 8.11 66.09 12.015 106.64 33.061 23.335 12.099 34.94 32.422 40.263 53.418v-166.52c0-12.626-10.243-22.872-22.869-22.872h-211.23z"/>
</g>
</svg>`
</svg>
`
}

0 comments on commit 1f441ab

Please sign in to comment.