Swiftgram/TelegramUI/PresentationResourcesCallList.swift
2019-06-06 17:43:48 +01:00

18 lines
720 B
Swift

import Foundation
import UIKit
import Display
struct PresentationResourcesCallList {
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)
})
}
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)
})
}
}