Theming fixes

This commit is contained in:
Ilya Laktyushin
2019-12-19 05:50:25 +04:00
parent 8e8bbb7112
commit e34523f254
11 changed files with 73 additions and 45 deletions

View File

@@ -65,7 +65,7 @@ public func messageBubbleImage(incoming: Bool, fillColor: UIColor, strokeColor:
let size = CGSize(width: rawSize.width - inset * 2.0, height: rawSize.height - inset * 2.0)
context.translateBy(x: inset, y: inset)
let lineWidth: CGFloat = 1.0
var lineWidth: CGFloat = 1.0
if drawWithClearColor {
context.setBlendMode(.copy)
@@ -78,6 +78,9 @@ public func messageBubbleImage(incoming: Bool, fillColor: UIColor, strokeColor:
}
if onlyOutline {
if knockout {
lineWidth = max(UIScreenPixel, 1.0 - 0.5)
}
context.setLineWidth(lineWidth)
context.setStrokeColor(strokeColor.cgColor)
}