Skip to content

Commit 60f36c6

Browse files
committed
Fix color space for Xcode theme syncing
1 parent 842d282 commit 60f36c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tool/Sources/Preferences/Types/StorableColors.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public struct StorableColor: Codable, Equatable {
1818
import SwiftUI
1919
public extension StorableColor {
2020
var swiftUIColor: SwiftUI.Color {
21-
SwiftUI.Color(.sRGB, red: red, green: green, blue: blue, opacity: alpha)
21+
SwiftUI.Color(nsColor: nsColor)
2222
}
2323
}
2424
#endif
@@ -28,7 +28,7 @@ import AppKit
2828
public extension StorableColor {
2929
var nsColor: NSColor {
3030
NSColor(
31-
srgbRed: CGFloat(red),
31+
calibratedRed: CGFloat(red),
3232
green: CGFloat(green),
3333
blue: CGFloat(blue),
3434
alpha: CGFloat(alpha)

0 commit comments

Comments
 (0)