Skip to content

Commit

Permalink
Merge pull request #108 from alimy/main
Browse files Browse the repository at this point in the history
desktop/tauri: disable resizable transparent window and enable setfullscreen on macos
  • Loading branch information
alimy authored Jun 17, 2022
2 parents 66c7846 + 5817199 commit d7a00cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version = "1.57"
tauri-build = { version = "1.0", features = [] }

[dependencies]
tauri = { version = "1.0", features = ["api-all"] }
tauri = { version = "1.0", features = ["api-all", "macos-private-api"] }

[features]
# by default Tauri runs in production mode
Expand Down
7 changes: 5 additions & 2 deletions web/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"withGlobalTauri": true
},
"tauri": {
"macOSPrivateApi": true,
"bundle": {
"active": true,
"targets": "all",
Expand Down Expand Up @@ -63,8 +64,10 @@
"title": "泡泡 | 一个清新文艺的微社区",
"width": 1080,
"height": 800,
"resizable": true,
"fullscreen": false
"resizable": false,
"fullscreen": false,
"transparent": true,
"decorations": true
}
],
"security": {
Expand Down

0 comments on commit d7a00cf

Please sign in to comment.