Merge pull request #376 from mitchellh/macos-color-space

macos: default to sRGB color space
This commit is contained in:
Mitchell Hashimoto
2023-09-01 15:06:02 -07:00
committed by GitHub

View File

@ -24,6 +24,11 @@ class PrimaryWindow: NSWindow {
defer: false)
window.center()
// Terminals typically operate in sRGB color space and macOS defaults
// to "native" which is typically P3. There is a lot more resources
// covered in thie GitHub issue: https://github.com/mitchellh/ghostty/pull/376
window.colorSpace = NSColorSpace.sRGB
window.contentView = NSHostingView(rootView: PrimaryView(
ghostty: ghostty,
appDelegate: appDelegate,