From e7eff4ca931d1caf52b049d16888805bc4b63933 Mon Sep 17 00:00:00 2001 From: ezequielnick <107352853+ezequielnick@users.noreply.github.com> Date: Wed, 3 Sep 2025 21:09:54 +0800 Subject: [PATCH] style: update app logo --- .../src/components/base/mihomo-icon.tsx | 103 +++++++++++++----- 1 file changed, 73 insertions(+), 30 deletions(-) diff --git a/src/renderer/src/components/base/mihomo-icon.tsx b/src/renderer/src/components/base/mihomo-icon.tsx index 1d254fe..767f1f0 100644 --- a/src/renderer/src/components/base/mihomo-icon.tsx +++ b/src/renderer/src/components/base/mihomo-icon.tsx @@ -1,30 +1,73 @@ -const SVGComponent = (props) => ( - - - - - - - - - -); -export default SVGComponent; +import React from 'react' +import { GenIcon } from 'react-icons' + +function MihomoIcon(props: any): React.JSX.Element { + return GenIcon({ + tag: 'svg', + attr: { viewBox: '0 0 120 150' }, + child: [ + { + tag: 'path', + attr: { + d: 'M123,105.41c0,15.99-13.44,20.46-20.54,20.6h-29.1c5.33-1.74,8.97-5.24,9.18-5.44.05-.05.28-.27.55-.56h19.31c1.44-.04,14.6-.78,14.6-14.6,0-9.22-3.85-21.88-34.64-29.67l-1.47-6.53c28.67,6.6,42.11,18.22,42.11,36.2Z', + fill: 'currentColor' + }, + child: [] + }, + { + tag: 'path', + attr: { + d: 'M81.1,37.6c-2.42.76-4.68,1.55-6.78,2.37l-1.33-5.92c2.05-.77,4.21-1.51,6.47-2.21.27,2.03.83,3.96,1.64,5.76Z', + fill: 'currentColor' + }, + child: [] + }, + { + tag: 'circle', + attr: { + cx: '53.83', + cy: '33.01', + r: '6', + fill: 'currentColor' + }, + child: [] + }, + { + tag: 'circle', + attr: { + cx: '33.83', + cy: '33.01', + r: '6', + fill: 'currentColor' + }, + child: [] + }, + { + tag: 'path', + attr: { + d: 'M67.53,126.01h-1.49c-1.83,0-3.4-1.54-3.19-3.36.17-1.52,1.4-2.64,2.98-2.64h1.7c4.3,0,8.3-1.9,11-5.3,2.7-3.3,3.6-7.6,2.7-11.8L60.13,8.91l-.4.4c-4.3,4.4-9.9,6.7-15.9,6.7s-11.6-2.3-15.8-6.6l-.5-.4L6.33,103.01c-.9,4.1,0,8.4,2.7,11.8s6.7,5.3,11,5.3h.59c1.83,0,3.4,1.54,3.19,3.36-.17,1.52-1.4,2.64-2.98,2.64h-.8c-6.1,0-11.8-2.7-15.7-7.5-3.8-4.9-5.2-11-3.8-17L22.93,2.31c.2-1.1,1-1.9,2.1-2.2,1-.3,2.2,0,3,.8l4.3,4.3c3,3.1,7.1,4.8,11.5,4.8s8.5-1.7,11.6-4.8l4.24-4.24c.37-.37.81-.68,1.31-.83,1.95-.58,3.56.68,3.86,2.16l22.3,99.3c1.3,5.9-.1,12.1-3.9,16.8-.4.5-1.4,1.5-1.4,1.5,0,0-6.26,6.1-14.3,6.1h0Z', + fill: 'currentColor' + }, + child: [] + }, + { + tag: 'path', + attr: { + d: 'M22.23,70.11c1.6-.3,3.2.7,3.5,2.4l9,45.1c.3,1.5,1.5,2.5,3,2.5,1.7,0,3-1.3,3-3v-34.1c0-1.7,1.3-3,3-3s3,1.3,3,3v34c0,1.6,1.4,3,3.1,3h1c1.5,0,2.7-1,3-2.5l9.1-45.1c.3-1.6,1.9-2.7,3.5-2.3,1.6.3,2.7,1.9,2.3,3.5l-9.1,45c-.7,4.3-4.5,7.4-8.9,7.4h-1c-2.3,0-4.5-.9-6.1-2.3-1.6,1.4-3.7,2.3-6,2.3-4.3,0-7.9-3-8.8-7.3l-9-45.1c-.3-1.6.8-3.2,2.4-3.5Z', + fill: 'currentColor' + }, + child: [] + }, + { + tag: 'path', + attr: { + d: 'M100.75,7.39c-11.85,0-21.5,9.64-21.5,21.5,0,1,.07,1.99.21,2.95.27,2.03.83,3.96,1.64,5.76,3.35,7.53,10.9,12.79,19.65,12.79,11.86,0,21.5-9.65,21.5-21.5s-9.64-21.5-21.5-21.5ZM100.75,45.39c-9.1,0-16.5-7.4-16.5-16.5s7.4-16.5,16.5-16.5,16.5,7.4,16.5,16.5-7.4,16.5-16.5,16.5Z', + fill: 'currentColor' + }, + child: [] + } + ] + })(props) +} + +export default MihomoIcon