mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:33:45 +08:00
chore: logo svg
This commit is contained in:
parent
c3d22c554f
commit
72edd2e15d
Binary file not shown.
Before Width: | Height: | Size: 4.5 KiB |
5
src/assets/image/icon_dark.svg
Normal file
5
src/assets/image/icon_dark.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0.00 0.00 512.00 512.00"
|
||||
width="512.00" height="512.00">
|
||||
<path fill="#ffffff"
|
||||
d=" M 45.65 297.77 C 50.31 280.20 56.48 263.74 64.10 247.67 C 66.07 243.51 65.99 238.92 65.73 234.44 Q 63.32 191.66 64.13 148.11 C 64.39 134.30 66.21 57.13 87.19 55.68 Q 94.10 55.20 99.69 57.92 Q 109.79 62.83 121.61 72.92 C 143.03 91.20 162.36 112.69 183.36 130.92 C 186.54 133.67 193.35 138.99 197.10 138.76 Q 198.57 138.67 200.07 138.26 Q 222.12 132.30 238.17 131.29 C 256.93 130.11 277.29 130.43 296.13 134.49 Q 305.05 136.41 313.24 138.56 C 318.37 139.92 325.54 133.72 329.51 130.33 Q 339.55 121.75 347.99 113.37 C 364.54 96.94 380.60 80.49 399.04 66.35 C 403.86 62.66 409.75 58.98 415.36 56.95 C 419.03 55.63 425.97 54.84 429.34 57.30 C 433.77 60.52 436.73 66.64 438.49 71.86 Q 441.73 81.45 443.26 90.82 Q 447.60 117.52 448.00 151.51 Q 448.45 189.74 447.59 207.00 Q 446.70 225.12 446.21 240.03 C 446.12 242.85 446.89 245.55 448.09 248.07 Q 459.73 272.71 466.27 297.70 C 467.59 302.75 468.45 308.08 467.82 313.31 C 466.21 326.87 459.76 339.57 452.24 350.80 Q 436.72 374.00 411.37 395.51 Q 374.63 426.67 330.92 443.23 Q 272.04 465.54 211.41 452.34 Q 188.54 447.36 165.13 436.61 Q 121.44 416.54 86.71 382.78 Q 69.63 366.18 57.73 347.55 C 50.80 336.69 44.86 323.90 44.03 311.09 Q 43.65 305.29 45.65 297.77 Z M 131.34 313.94 C 140.29 332.22 157.72 341.20 177.30 342.68 Q 184.65 343.24 193.22 340.65 Q 202.03 338.00 205.56 330.26 C 211.13 318.09 200.76 303.01 191.81 296.02 C 179.37 286.31 161.98 280.10 146.19 280.97 Q 137.21 281.47 131.35 287.14 C 124.01 294.24 127.17 305.43 131.34 313.94 Z M 349.22 281.81 C 332.78 284.95 316.93 292.71 307.08 305.92 C 303.14 311.22 300.42 317.96 301.07 324.43 C 302.18 335.36 310.18 340.08 320.43 341.92 C 336.31 344.78 355.06 339.00 366.59 328.03 C 376.14 318.95 389.80 294.29 373.19 284.22 C 366.55 280.20 356.95 280.33 349.22 281.81 Z M 226.25 381.62 C 232.99 389.35 240.71 395.69 249.97 398.50 C 259.93 401.51 272.87 391.21 279.39 384.18 C 281.43 381.98 283.70 379.66 284.61 376.72 C 285.41 374.13 282.30 371.54 280.28 370.59 Q 276.07 368.62 271.56 368.03 Q 254.57 365.79 237.08 367.97 Q 232.61 368.53 228.23 370.40 C 225.86 371.41 222.31 374.22 223.50 377.19 Q 224.45 379.55 226.25 381.62 Z" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB |
5
src/assets/image/icon_light.svg
Normal file
5
src/assets/image/icon_light.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0.00 0.00 512.00 512.00"
|
||||
width="512.00" height="512.00">
|
||||
<path fill="#000000"
|
||||
d=" M 66.75 243.26 C 64.36 202.61 63.47 160.98 66.14 119.90 Q 67.07 105.54 69.56 90.86 C 71.35 80.37 74.26 67.20 81.13 59.68 C 88.86 51.20 102.34 59.42 109.45 64.46 Q 122.61 73.79 137.56 88.26 Q 154.16 104.32 170.37 120.15 Q 177.39 127.01 185.78 133.69 C 189.58 136.71 194.75 140.48 199.81 139.03 Q 256.12 122.89 312.63 139.17 C 317.17 140.47 322.43 136.89 326.29 133.81 Q 334.64 127.18 341.86 120.15 Q 358.44 104.02 373.87 89.06 Q 389.67 73.75 403.99 63.72 Q 409.86 59.61 416.68 57.20 C 430.17 52.45 435.71 64.65 438.76 74.78 Q 442.82 88.24 444.57 104.64 Q 447.71 133.95 447.66 168.99 Q 447.61 205.59 445.24 243.61 Q 445.21 244.12 445.44 244.57 Q 459.30 271.43 466.56 302.09 C 469.00 312.41 465.64 324.20 461.06 333.82 C 449.65 357.80 430.14 378.99 409.62 396.13 Q 372.77 426.90 329.61 443.00 Q 266.07 466.70 201.80 449.27 C 162.55 438.62 125.61 417.06 95.28 389.88 C 77.45 373.90 60.60 354.63 50.57 332.92 C 46.30 323.66 43.03 312.16 45.33 302.37 Q 52.57 271.58 66.46 244.63 Q 66.80 243.98 66.75 243.26 Z M 129.31 310.72 Q 136.38 328.58 152.74 336.68 C 165.31 342.91 181.44 345.53 194.60 340.75 C 211.72 334.54 209.96 316.29 200.74 304.29 C 190.53 291.00 173.63 283.30 157.10 280.73 C 136.41 277.52 120.03 287.25 129.31 310.72 Z M 304.10 309.36 C 297.35 321.61 299.56 335.79 313.93 340.88 C 326.42 345.31 342.09 343.01 354.08 337.35 Q 374.66 327.63 380.68 304.95 C 386.50 282.97 365.69 278.03 349.30 281.14 C 331.39 284.54 312.80 293.56 304.10 309.36 Z M 244.39 396.99 Q 252.76 401.23 260.59 398.28 Q 271.64 394.13 281.68 382.89 C 290.72 372.77 280.23 368.82 272.04 367.56 Q 253.06 364.63 234.76 367.80 C 228.71 368.85 218.66 372.23 224.67 380.57 Q 231.98 390.72 244.39 396.99 Z" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
@ -5,15 +5,15 @@ import { SWRConfig, mutate } from "swr";
|
||||
import { useEffect } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useLocation, useRoutes } from "react-router-dom";
|
||||
import { List, Paper, ThemeProvider } from "@mui/material";
|
||||
import { List, Paper, ThemeProvider, SvgIcon } from "@mui/material";
|
||||
import { listen } from "@tauri-apps/api/event";
|
||||
import { appWindow } from "@tauri-apps/api/window";
|
||||
import { routers } from "./_routers";
|
||||
import { getAxios } from "@/services/api";
|
||||
import { useVerge } from "@/hooks/use-verge";
|
||||
import LogoSvg from "@/assets/image/logo.svg?react";
|
||||
import iconLight from "@/assets/image/icon_light.png";
|
||||
import iconDark from "@/assets/image/icon_dark.png";
|
||||
import iconLight from "@/assets/image/icon_light.svg?react";
|
||||
import iconDark from "@/assets/image/icon_dark.svg?react";
|
||||
import { atomThemeMode } from "@/services/states";
|
||||
import { useRecoilState } from "recoil";
|
||||
import { Notice } from "@/components/base";
|
||||
@ -145,16 +145,16 @@ const Layout = () => {
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<img
|
||||
src={isDark ? iconDark : iconLight}
|
||||
<SvgIcon
|
||||
component={isDark ? iconDark : iconLight}
|
||||
style={{
|
||||
height: "36px",
|
||||
width: "36px",
|
||||
marginTop: "-3px",
|
||||
marginRight: "5px",
|
||||
marginLeft: "-3px",
|
||||
display: "flex",
|
||||
}}
|
||||
inheritViewBox
|
||||
/>
|
||||
<LogoSvg fill={isDark ? "white" : "black"} />
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user