mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Support blurred RadialStatusNode
This commit is contained in:
@@ -52,7 +52,7 @@ final class SettingsThemeWallpaperNode: ASDisplayNode {
|
||||
self.displayLoading = displayLoading
|
||||
self.imageNode.contentAnimations = [.subsequentUpdates]
|
||||
|
||||
self.statusNode = RadialStatusNode(backgroundNodeColor: overlayBackgroundColor)
|
||||
self.statusNode = RadialStatusNode(backgroundNodeColor: overlayBackgroundColor, enableBlur: true)
|
||||
let progressDiameter: CGFloat = 50.0
|
||||
self.statusNode.frame = CGRect(x: 0.0, y: 0.0, width: progressDiameter, height: progressDiameter)
|
||||
self.statusNode.isUserInteractionEnabled = false
|
||||
@@ -170,7 +170,7 @@ final class SettingsThemeWallpaperNode: ASDisplayNode {
|
||||
switch wallpaper {
|
||||
case .builtin:
|
||||
self.imageNode.alpha = 1.0
|
||||
self.imageNode.setSignal(settingsBuiltinWallpaperImage(account: context.account))
|
||||
self.imageNode.setSignal(settingsBuiltinWallpaperImage(account: context.account, thumbnail: true))
|
||||
let apply = self.imageNode.asyncLayout()(TransformImageArguments(corners: corners, imageSize: CGSize(), boundingSize: size, intrinsicInsets: UIEdgeInsets()))
|
||||
apply()
|
||||
self.isLoadedDisposable.set(nil)
|
||||
|
||||
Reference in New Issue
Block a user