mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
25 lines
1.1 KiB
Swift
25 lines
1.1 KiB
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 outgoingVideoIcon(_ theme: PresentationTheme) -> UIImage? {
|
|
return theme.image(PresentationResourceKey.callListOutgoingVideoIcon.rawValue, { theme in
|
|
return generateTintedImage(image: UIImage(bundleImageName: "Call List/OutgoingVideoIcon"), 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)
|
|
})
|
|
}
|
|
}
|