Merge pull request #1164 from mitchellh/macos-about-select

macos: text in about window is selectable
This commit is contained in:
Mitchell Hashimoto
2023-12-27 07:54:40 -08:00
committed by GitHub
8 changed files with 5 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 KiB

View File

@ -1,17 +1,17 @@
{ {
"images" : [ "images" : [
{ {
"filename" : "199110421-9ff5fc30-a244-441e-9882-26070662adf9.png", "filename" : "icon_128x128.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "199110421-9ff5fc30-a244-441e-9882-26070662adf9 1.png", "filename" : "icon_128x128@2x@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "199110421-9ff5fc30-a244-441e-9882-26070662adf9 2.png", "filename" : "icon_256x256@2x@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -15,10 +15,12 @@ struct AboutView: View {
Text("Ghostty") Text("Ghostty")
.font(.title3) .font(.title3)
.textSelection(.enabled)
if let version = self.version { if let version = self.version {
Text("Version: \(version)") Text("Version: \(version)")
.font(.body) .font(.body)
.textSelection(.enabled)
} }
} }
.frame(minWidth: 300) .frame(minWidth: 300)