From 16bc1f55a203c82df23b3a854b31a0043a677a8b Mon Sep 17 00:00:00 2001 From: Purp1e <438518244@qq.com> Date: Mon, 28 Oct 2024 15:05:56 +0800 Subject: [PATCH] update dep + card styles --- src-tauri/Cargo.toml | 24 ++++++++++++------------ src/app/(main)/preference/layout.tsx | 6 +++--- src/components/window/Card.tsx | 4 ++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 5a3a681..f858c0d 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -12,24 +12,24 @@ rust-version = "1.66" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [build-dependencies] -tauri-build = { version = "2.0.0-rc", features = [] } +tauri-build = { version = "2.0.2", features = [] } [dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } -tauri = { version = "2.0.0-rc", features = [ "macos-private-api", +tauri = { version = "2.0.6", features = [ "macos-private-api", "tray-icon" ] } window-vibrancy = "0.5.2" -tauri-plugin-process = "2.0.0-rc" -tauri-plugin-fs = "2.0.0-rc" -tauri-plugin-dialog = "2.0.0-rc" -tauri-plugin-os = "2.0.0-rc" -tauri-plugin-clipboard-manager = "2.0.0-alpha.2" -tauri-plugin-shell = "2.0.0-rc" -tauri-plugin-http = "2.0.0-rc" -tauri-plugin-notification = "2.0.0-rc" -tauri-plugin-store = "2.0.0-rc" +tauri-plugin-process = "2.0.1" +tauri-plugin-fs = "2.0.3" +tauri-plugin-dialog = "2.0.3" +tauri-plugin-os = "2.0.1" +tauri-plugin-clipboard-manager = "2.0.1" +tauri-plugin-shell = "2.0.2" +tauri-plugin-http = "2.0.3" +tauri-plugin-notification = "2.0.1" +tauri-plugin-store = "2.1.0" [target.'cfg(windows)'.dependencies] # Windows Only winreg = "0.52.0" @@ -42,4 +42,4 @@ default = [ "custom-protocol" ] custom-protocol = [ "tauri/custom-protocol" ] [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies] -tauri-plugin-global-shortcut = "2.0.0-rc" +tauri-plugin-global-shortcut = "2.0.1" diff --git a/src/app/(main)/preference/layout.tsx b/src/app/(main)/preference/layout.tsx index d4e3453..2375372 100644 --- a/src/app/(main)/preference/layout.tsx +++ b/src/app/(main)/preference/layout.tsx @@ -16,21 +16,21 @@ export default function PreferenceLayout({ children }: { children: React.ReactNo router.push("/preference/general")} - className={clsx(pathname === "/preference/general" && "bg-white/60")} + className={clsx(pathname === "/preference/general" && "bg-black/5")} > 通用 router.push("/preference/path")} - className={clsx(pathname === "/preference/path" && "bg-white/60")} + className={clsx(pathname === "/preference/path" && "bg-black/5")} > 路径 router.push("/preference/replay")} - className={clsx(pathname === "/preference/replay" && "bg-white/60")} + className={clsx(pathname === "/preference/replay" && "bg-black/5")} > 录像 diff --git a/src/components/window/Card.tsx b/src/components/window/Card.tsx index e76ff16..e8ff30e 100644 --- a/src/components/window/Card.tsx +++ b/src/components/window/Card.tsx @@ -11,7 +11,7 @@ interface CardProps { const Card = ({ children }: CardProps) => { return (
{children} @@ -25,7 +25,7 @@ const CardHeader = ({ children }: CardProps) => { const CardIcon = ({ children, type, className, ...rest }: CardProps) => { return ( -
+
{children}
)