mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Merge branch 'master' into buck-test
This commit is contained in:
@@ -146,6 +146,7 @@ private final class ThemeSettingsThemeItemIconNode : ASDisplayNode {
|
||||
|
||||
private var theme: PresentationThemeReference?
|
||||
private var currentTheme: PresentationTheme?
|
||||
private var accentColor: UIColor?
|
||||
private var bordered: Bool?
|
||||
private var selected: Bool?
|
||||
|
||||
@@ -176,9 +177,10 @@ private final class ThemeSettingsThemeItemIconNode : ASDisplayNode {
|
||||
self.currentTheme = currentTheme
|
||||
}
|
||||
} else {
|
||||
if theme != self.theme {
|
||||
if theme != self.theme || accentColor != self.accentColor {
|
||||
self.imageNode.setSignal(themeIconImage(account: context.account, accountManager: context.sharedContext.accountManager, theme: theme, accentColor: accentColor))
|
||||
self.theme = theme
|
||||
self.accentColor = accentColor
|
||||
}
|
||||
}
|
||||
if self.currentTheme == nil || currentTheme !== self.currentTheme! || bordered != self.bordered || selected != self.selected {
|
||||
|
||||
Reference in New Issue
Block a user