This commit is contained in:
Peter
2019-10-07 17:03:41 +04:00
parent fe5ccfac26
commit 5fed1fbeb1
257 changed files with 9346 additions and 4276 deletions

View File

@@ -68,14 +68,6 @@ public struct PresentationResourcesRootController {
public static func navigationCompactSearchIcon(_ theme: PresentationTheme) -> UIImage? {
return theme.image(PresentationResourceKey.navigationCompactSearchIcon.rawValue, { theme in
return generateTintedImage(image: UIImage(bundleImageName: "Chat List/SearchIcon"), color: theme.rootController.navigationBar.accentTextColor)
// return generateTintedImage(image: UIImage(bundleImageName: "Chat List/SearchIcon"), color: theme.rootController.navigationBar.accentTextColor).flatMap({ image in
// let factor: CGFloat = 0.8
// let size = CGSize(width: floor(image.size.width * factor), height: floor(image.size.height * factor))
// return generateImage(size, contextGenerator: { size, context in
// context.clear(CGRect(origin: CGPoint(), size: size))
// context.draw(image.cgImage!, in: CGRect(origin: CGPoint(), size: size))
// })
// })
})
}