Various improvements

This commit is contained in:
Ilya Laktyushin
2024-07-22 20:43:52 +04:00
parent 4e46697a66
commit 31ba87fb0f
16 changed files with 252 additions and 139 deletions

View File

@@ -192,15 +192,12 @@ public enum CodableDrawingEntity: Equatable {
url: url
)
case let .weather(entity):
var flags: MediaArea.WeatherFlags = []
if entity.style == .black {
flags.insert(.isDark)
}
let color: UInt32 = 0xffffffff
return .weather(
coordinates: coordinates,
emoji: entity.emoji,
temperature: entity.temperature,
flags: flags
color: Int32(bitPattern: color)
)
default:
return nil