mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Update themes
This commit is contained in:
@@ -13,6 +13,7 @@ import AuthorizationUI
|
||||
private func generateButtonImage(backgroundColor: UIColor, borderColor: UIColor, highlightColor: UIColor?) -> UIImage? {
|
||||
return generateImage(CGSize(width: 1.0, height: 44.0), contextGenerator: { size, context in
|
||||
let bounds = CGRect(origin: CGPoint(), size: size)
|
||||
context.clear(bounds)
|
||||
|
||||
if let highlightColor = highlightColor {
|
||||
context.setFillColor(highlightColor.cgColor)
|
||||
|
||||
Reference in New Issue
Block a user