1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-11 05:05:23 +03:00

Fix #387: use opacity for system colors

This commit is contained in:
Mark Goldin 2019-04-08 16:30:36 +07:00
parent f2f9edabbd
commit 6f1d0b102b

View File

@ -610,7 +610,7 @@ open class SVGParser {
}
if let systemColor = SVGConstants.systemColorList[colorString] {
let color = Color(val: systemColor)
return color
return opacity != 1 ? color.with(a: opacity) : color
}
if colorString.hasPrefix("rgb") {
let color = parseRGBNotation(colorString: colorString)