Various theme editing fixes

This commit is contained in:
Ilya Laktyushin
2021-08-19 01:17:06 +04:00
parent b4dbb9698b
commit 3fd9c0aa5f
7 changed files with 23 additions and 14 deletions

View File

@@ -115,7 +115,7 @@ extension TelegramWallpaper: Codable {
colors.append(value.rgb)
} else if component.count <= 3, let value = Int32(component) {
if intensity == nil {
if value >= 0 && value <= 100 {
if value >= -100 && value <= 100 {
intensity = value
} else {
intensity = 50