mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -192,7 +192,17 @@ public enum CodableDrawingEntity: Equatable {
|
||||
url: url
|
||||
)
|
||||
case let .weather(entity):
|
||||
let color: UInt32 = 0xffffffff
|
||||
let color: UInt32
|
||||
switch entity.style {
|
||||
case .white:
|
||||
color = 0xffffffff
|
||||
case .black:
|
||||
color = 0xff000000
|
||||
case .transparent:
|
||||
color = 0x51000000
|
||||
case .custom:
|
||||
color = entity.color.toUIColor().argb
|
||||
}
|
||||
return .weather(
|
||||
coordinates: coordinates,
|
||||
emoji: entity.emoji,
|
||||
|
||||
Reference in New Issue
Block a user