We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df6667f commit 811ba54Copy full SHA for 811ba54
Sources/ZMarkupParser/Core/MarkupStyle/MarkupStyleColor.swift
@@ -124,9 +124,9 @@ extension MarkupStyleColor {
124
125
public init(color: NSColor) {
126
let ciColor = CIColor(color: color)
127
- self.red = Int(ciColor?.red ?? 0) * 255)
128
- self.green = Int(ciColor?.green ?? 0) * 255)
129
- self.blue = Int(ciColor?.blue ?? 0) * 255)
+ self.red = Int((ciColor?.red ?? 0) * 255)
+ self.green = Int((ciColor?.green ?? 0) * 255)
+ self.blue = Int((ciColor?.blue ?? 0) * 255)
130
self.alpha = ciColor?.alpha ?? 1
131
}
132
0 commit comments