mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Chat wallpaper improvements
This commit is contained in:
parent
e8f197d9e8
commit
790343efa8
@ -9154,6 +9154,7 @@ Sorry for the inconvenience.";
|
|||||||
"WallpaperPreview.ChatBottomText" = "Enjoy the view.";
|
"WallpaperPreview.ChatBottomText" = "Enjoy the view.";
|
||||||
|
|
||||||
"Conversation.Theme.SetPhotoWallpaper" = "Choose Wallpaper from Photos";
|
"Conversation.Theme.SetPhotoWallpaper" = "Choose Wallpaper from Photos";
|
||||||
|
"Conversation.Theme.SetNewPhotoWallpaper" = "Choose a New Wallpaper";
|
||||||
"Conversation.Theme.SetColorWallpaper" = "Set a Color as Wallpaper";
|
"Conversation.Theme.SetColorWallpaper" = "Set a Color as Wallpaper";
|
||||||
|
|
||||||
"Conversation.Theme.ChooseWallpaperTitle" = "Choose Wallpaper";
|
"Conversation.Theme.ChooseWallpaperTitle" = "Choose Wallpaper";
|
||||||
|
@ -219,6 +219,11 @@ final class WallpaperNavigationButtonNode: HighlightTrackingButtonNode {
|
|||||||
self.animationNode?.setAnimation(name: !isNight ? "anim_sun_reverse" : "anim_sun", colors: [:])
|
self.animationNode?.setAnimation(name: !isNight ? "anim_sun_reverse" : "anim_sun", colors: [:])
|
||||||
self.animationNode?.speed = 1.66
|
self.animationNode?.speed = 1.66
|
||||||
self.animationNode?.playOnce()
|
self.animationNode?.playOnce()
|
||||||
|
|
||||||
|
self.isUserInteractionEnabled = false
|
||||||
|
Queue.mainQueue().after(0.4) {
|
||||||
|
self.isUserInteractionEnabled = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var buttonColor: UIColor = UIColor(rgb: 0x000000, alpha: 0.3) {
|
var buttonColor: UIColor = UIColor(rgb: 0x000000, alpha: 0.3) {
|
||||||
|
@ -1015,8 +1015,8 @@ private class ChatThemeScreenNode: ViewControllerTracingNode, UIScrollViewDelega
|
|||||||
var accentButtonTheme = true
|
var accentButtonTheme = true
|
||||||
var otherIsEnabled = false
|
var otherIsEnabled = false
|
||||||
if self.selectedEmoticon?.strippedEmoji == self.initiallySelectedEmoticon?.strippedEmoji {
|
if self.selectedEmoticon?.strippedEmoji == self.initiallySelectedEmoticon?.strippedEmoji {
|
||||||
doneButtonTitle = self.presentationData.strings.Conversation_Theme_SetPhotoWallpaper
|
|
||||||
otherIsEnabled = self.controller?.canResetWallpaper == true
|
otherIsEnabled = self.controller?.canResetWallpaper == true
|
||||||
|
doneButtonTitle = otherIsEnabled ? self.presentationData.strings.Conversation_Theme_SetNewPhotoWallpaper : self.presentationData.strings.Conversation_Theme_SetPhotoWallpaper
|
||||||
accentButtonTheme = false
|
accentButtonTheme = false
|
||||||
} else if self.selectedEmoticon == nil && self.initiallySelectedEmoticon != nil {
|
} else if self.selectedEmoticon == nil && self.initiallySelectedEmoticon != nil {
|
||||||
doneButtonTitle = self.presentationData.strings.Conversation_Theme_Reset
|
doneButtonTitle = self.presentationData.strings.Conversation_Theme_Reset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user