Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复 macOS 上 1px 白边问题以及圆角问题 #263

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
.DS_Store
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"deno.enablePaths": ["./script"],
"deno.lint": true,
"deno.unstable": true,
"rust-analyzer.linkedProjects": [".\\src-tauri\\Cargo.toml"]
"rust-analyzer.linkedProjects": ["./src-tauri/Cargo.toml"],
}
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2021"
tauri-build = { version = "2.0.0-beta", features = [] }

[dependencies]
tauri = { version = "2.0.0-beta", features = ["tray-icon"] }
tauri = { version = "2.0.0-beta", features = [ "macos-private-api", "tray-icon"] }
tauri-plugin-single-instance = "2.0.0-beta"

# For base
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub fn panel(app: &AppHandle) {
.visible(false)
.shadow(true)
.center()
.transparent(true)
.build()
.expect("Failed to create panel window");
}
3 changes: 2 additions & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"withGlobalTauri": false,
"security": {
"csp": null
}
},
"macOSPrivateApi": true
},
"bundle": {
"active": true,
Expand Down
1 change: 1 addition & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ input:-webkit-autofill {
overflow: hidden;
box-sizing: border-box;
border: #434244 1px solid;
border-radius: 8px;
}

/*
Expand Down