mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
UI improvements
This commit is contained in:
parent
62a431b12c
commit
9cfcc5d8ba
5 changed files with 11 additions and 12 deletions
|
|
@ -1205,12 +1205,7 @@ public final class WallpaperBackgroundNodeImpl: ASDisplayNode, WallpaperBackgrou
|
|||
self.wallpaperDisposable.set(nil)
|
||||
|
||||
if case let .file(file) = wallpaper, file.isPattern {
|
||||
let intensity = CGFloat(file.settings.intensity ?? 50) / 100.0
|
||||
if intensity > 0 {
|
||||
self.updateIsDark(nil)
|
||||
} else {
|
||||
self.updateIsDark(calculateWallpaperBrightness(from: gradientColors) <= 0.3)
|
||||
}
|
||||
self.updateIsDark(nil)
|
||||
} else {
|
||||
self.updateIsDark(calculateWallpaperBrightness(from: gradientColors) <= 0.3)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue