Skip to content

Commit 91fddf2

Browse files
yejimingyejiming
authored andcommitted
fix: align dev/build dock icons on macOS using icon-dev.icns
- Add objc2 deps for macOS native setApplicationIconImage - Use KittyRed-style icon-dev.icns in dev mode via NSApplication - Skip window.set_icon on macOS debug to avoid PNG vs ICNS mismatch - Clean icon.png edge semi-transparent pixels to remove gray shadow - Update index.html favicon to /icon.png
1 parent 97fd98a commit 91fddf2

73 files changed

Lines changed: 1406 additions & 146 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 6 additions & 0 deletions

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/png" href="/icon.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Tauri + React + Typescript</title>
88
</head>

public/icon.png

83.2 KB

src-tauri/Cargo.lock

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
1818
tauri-build = { version = "2", features = [] }
1919

2020
[dependencies]
21-
tauri = { version = "2", features = [] }
21+
tauri = { version = "2", features = ["image-png"] }
2222
tauri-plugin-opener = "2"
2323
serde = { version = "1", features = ["derive"] }
2424
serde_json = "1"
@@ -33,3 +33,8 @@ base64 = "0.22"
3333
tokio = { version = "1.52.3", features = ["sync"] }
3434
scraper = "0.27.0"
3535
chrono = "0.4"
36+
37+
[target.'cfg(target_os = "macos")'.dependencies]
38+
objc2 = "0.6"
39+
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSApplication", "NSImage"] }
40+
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "NSData"] }

src-tauri/icons/128x128.png

9.93 KB

src-tauri/icons/128x128@2x.png

29.5 KB

src-tauri/icons/32x32.png

1004 Bytes

src-tauri/icons/64x64.png

5.08 KB
7.51 KB

0 commit comments

Comments
 (0)