macos: paste protection boilerplate

This commit is contained in:
Mitchell Hashimoto
2023-11-04 20:11:09 -07:00
parent 3e26a2f506
commit 5f5f5a44ec
5 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import SwiftUI
struct PasteProtectionView: View {
var body: some View {
HStack {
Image("AppIconImage")
.resizable()
.scaledToFit()
.frame(width: 128, height: 128)
VStack(alignment: .leading) {
Text("Oh, no. 😭").font(.title)
Text("Something went fatally wrong.\nCheck the logs and restart Ghostty.")
}
}
.padding()
}
}