UI improvements

This commit is contained in:
Isaac 2026-01-06 22:54:01 +08:00
parent 62a431b12c
commit 9cfcc5d8ba
5 changed files with 11 additions and 12 deletions

View file

@ -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)
}