Swiftgram/submodules/TelegramPresentationData/Sources/Resources/PresentationResourcesCallList.swift
2019-08-30 23:32:32 +04:00

19 lines
758 B
Swift

import Foundation
import UIKit
import Display
import AppBundle
public struct PresentationResourcesCallList {
public static func outgoingIcon(_ theme: PresentationTheme) -> UIImage? {
return theme.image(PresentationResourceKey.callListOutgoingIcon.rawValue, { theme in
return generateTintedImage(image: UIImage(bundleImageName: "Call List/OutgoingIcon"), color: theme.list.disclosureArrowColor)
})
}
public static func infoButton(_ theme: PresentationTheme) -> UIImage? {
return theme.image(PresentationResourceKey.callListInfoButton.rawValue, { theme in
return generateTintedImage(image: UIImage(bundleImageName: "Call List/InfoButton"), color: theme.list.itemAccentColor)
})
}
}