mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix name colors order
This commit is contained in:
@@ -2242,7 +2242,7 @@ open class TextNode: ASDisplayNode {
|
||||
|
||||
let dashOffset: CGFloat
|
||||
if let _ = tertiaryTintColor {
|
||||
dashOffset = isMonochrome ? -2.0 : 0.0
|
||||
dashOffset = isMonochrome ? -7.0 : 5.0
|
||||
} else {
|
||||
dashOffset = isMonochrome ? -4.0 : 5.0
|
||||
}
|
||||
@@ -2257,6 +2257,10 @@ open class TextNode: ASDisplayNode {
|
||||
context.setFillColor(secondaryTintColor.cgColor)
|
||||
}
|
||||
|
||||
if let _ = tertiaryTintColor {
|
||||
context.translateBy(x: 0.0, y: dashHeight)
|
||||
}
|
||||
|
||||
func drawDashes() {
|
||||
context.translateBy(x: blockFrame.minX, y: blockFrame.minY + dashOffset)
|
||||
|
||||
@@ -2279,7 +2283,6 @@ open class TextNode: ASDisplayNode {
|
||||
|
||||
if let tertiaryTintColor {
|
||||
context.saveGState()
|
||||
context.translateBy(x: 0.0, y: dashHeight)
|
||||
if isMonochrome {
|
||||
context.setFillColor(blockQuote.tintColor.withAlphaComponent(0.4).cgColor)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user