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:
parent
f2f9edabbd
commit
6f1d0b102b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user