mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
Merge pull request #376 from mitchellh/macos-color-space
macos: default to sRGB color space
This commit is contained in:
@ -23,7 +23,12 @@ class PrimaryWindow: NSWindow {
|
|||||||
backing: .buffered,
|
backing: .buffered,
|
||||||
defer: false)
|
defer: false)
|
||||||
window.center()
|
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(
|
window.contentView = NSHostingView(rootView: PrimaryView(
|
||||||
ghostty: ghostty,
|
ghostty: ghostty,
|
||||||
appDelegate: appDelegate,
|
appDelegate: appDelegate,
|
||||||
|
Reference in New Issue
Block a user