Blur and background updates

This commit is contained in:
Ali
2021-05-18 19:30:41 +04:00
parent f1ce92f480
commit 99dc1a8743
80 changed files with 800 additions and 432 deletions

View File

@@ -35,7 +35,7 @@ final class PeerMediaCollectionSectionsNode: ASDisplayNode {
super.init()
self.backgroundColor = self.theme.rootController.navigationBar.backgroundColor
self.backgroundColor = self.theme.rootController.navigationBar.opaqueBackgroundColor
self.segmentedControlNode.selectedIndexChanged = { [weak self] index in
self?.indexUpdated?(index)
@@ -57,7 +57,7 @@ final class PeerMediaCollectionSectionsNode: ASDisplayNode {
if interfaceState.theme !== self.theme {
self.theme = interfaceState.theme
self.separatorNode.backgroundColor = self.theme.rootController.navigationBar.separatorColor
self.backgroundColor = self.theme.rootController.navigationBar.backgroundColor
self.backgroundColor = self.theme.rootController.navigationBar.opaqueBackgroundColor
self.segmentedControlNode.updateTheme(SegmentedControlTheme(theme: self.theme))
}