Skip to content

Commit

Permalink
chore: logo svg
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchengjie committed May 14, 2024
1 parent c3d22c5 commit 72edd2e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
Binary file removed src/assets/image/icon_dark.png
Binary file not shown.
5 changes: 5 additions & 0 deletions src/assets/image/icon_dark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/image/icon_light.png
Binary file not shown.
5 changes: 5 additions & 0 deletions src/assets/image/icon_light.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/pages/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 72edd2e

Please sign in to comment.