mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 05:26:48 +00:00
Theme fixes
This commit is contained in:
parent
c5e6cb990a
commit
56f5299cc9
@ -367,6 +367,12 @@ public final class ThemePreviewController: ViewController {
|
|||||||
updatedSettings = currentSettings.withUpdatedTheme(updatedTheme)
|
updatedSettings = currentSettings.withUpdatedTheme(updatedTheme)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var themeSpecificAccentColors = updatedSettings.themeSpecificAccentColors
|
||||||
|
if case let .cloud(info) = updatedTheme, let settings = info.theme.settings {
|
||||||
|
let baseThemeReference = PresentationThemeReference.builtin(PresentationBuiltinThemeReference(baseTheme: settings.baseTheme))
|
||||||
|
themeSpecificAccentColors[baseThemeReference.index] = PresentationThemeAccentColor(themeIndex: updatedTheme.index)
|
||||||
|
}
|
||||||
|
|
||||||
var themeSpecificChatWallpapers = updatedSettings.themeSpecificChatWallpapers
|
var themeSpecificChatWallpapers = updatedSettings.themeSpecificChatWallpapers
|
||||||
themeSpecificChatWallpapers[updatedTheme.index] = nil
|
themeSpecificChatWallpapers[updatedTheme.index] = nil
|
||||||
return updatedSettings.withUpdatedThemeSpecificChatWallpapers(themeSpecificChatWallpapers)
|
return updatedSettings.withUpdatedThemeSpecificChatWallpapers(themeSpecificChatWallpapers)
|
||||||
|
|||||||
@ -47,6 +47,9 @@ final class WallpaperGalleryToolbarNode: ASDisplayNode {
|
|||||||
self.cancelButtonType = cancelButtonType
|
self.cancelButtonType = cancelButtonType
|
||||||
self.doneButtonType = doneButtonType
|
self.doneButtonType = doneButtonType
|
||||||
|
|
||||||
|
self.cancelHighlightBackgroundNode.alpha = 0.0
|
||||||
|
self.doneHighlightBackgroundNode.alpha = 0.0
|
||||||
|
|
||||||
super.init()
|
super.init()
|
||||||
|
|
||||||
self.addSubnode(self.cancelHighlightBackgroundNode)
|
self.addSubnode(self.cancelHighlightBackgroundNode)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user