home(visionOS): use plain window style

This commit is contained in:
osy 2024-02-24 19:47:02 -08:00
parent 7b94235416
commit 1a966d2923
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ struct UTMApp: App {
WindowGroup(for: VMSessionState.GlobalWindowID.self) { $globalID in
if let globalID = globalID, let session = VMSessionState.allActiveSessions[globalID.sessionID] {
VMWindowView(id: globalID.windowID).environmentObject(session)
.glassBackgroundEffect(in: .rect(cornerRadius: 15))
#if WITH_SOLO_VM
.onAppear {
// currently we only support one session, so close the home window
@ -70,6 +71,7 @@ struct UTMApp: App {
#endif
}
}
.windowStyle(.plain)
.windowResizability(.contentMinSize)
}
}