Revert "Revert "Set NSWindow color space to sRGB on macOS"" (#12546)

re: https://github.com/OrcaSlicer/OrcaSlicer/pull/10827#issuecomment-3713871962

Let's give this another try :)
This commit is contained in:
Andrew Sun
2026-03-02 07:31:14 -05:00
committed by GitHub
parent abd3bce88a
commit 49d2a326db

View File

@@ -53,6 +53,11 @@ float RetinaHelper::get_scale_factor()
[nc addObserver:self selector:@selector(windowDidChangeBackingProperties:)
name:NSWindowDidChangeBackingPropertiesNotification object:nil];
}
NSWindow* window = [aView window];
if (window) {
[window setColorSpace:[NSColorSpace sRGBColorSpace]];
}
}
return self;
}