From dd7f239dc41a9adb5b3419f9cedf91fe3c7296f4 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Wed, 1 Dec 2021 19:24:44 +0400 Subject: [PATCH] Fix navigation badge background --- submodules/Display/Source/NavigationBarBadge.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/Display/Source/NavigationBarBadge.swift b/submodules/Display/Source/NavigationBarBadge.swift index 2c998d3a57..f1236dccc3 100644 --- a/submodules/Display/Source/NavigationBarBadge.swift +++ b/submodules/Display/Source/NavigationBarBadge.swift @@ -31,7 +31,7 @@ public final class NavigationBarBadgeNode: ASDisplayNode { self.backgroundNode = ASImageNode() self.backgroundNode.isLayerBacked = true self.backgroundNode.displaysAsynchronously = false - self.backgroundNode.image = generateStretchableFilledCircleImage(radius: 18.0, color: fillColor, backgroundColor: nil) + self.backgroundNode.image = generateStretchableFilledCircleImage(radius: 9.0, color: fillColor, backgroundColor: nil) super.init() @@ -43,7 +43,7 @@ public final class NavigationBarBadgeNode: ASDisplayNode { self.fillColor = fillColor self.strokeColor = strokeColor self.textColor = textColor - self.backgroundNode.image = generateStretchableFilledCircleImage(radius: 18.0, color: fillColor, backgroundColor: nil) + self.backgroundNode.image = generateStretchableFilledCircleImage(radius: 9.0, color: fillColor, backgroundColor: nil) self.textNode.attributedText = NSAttributedString(string: self.text, font: self.font, textColor: self.textColor) self.textNode.redrawIfPossible() }