mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Attachment menu improvements
This commit is contained in:
parent
d3a32f924c
commit
b45afa9efc
@ -854,6 +854,7 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
|
||||
self?.controller?.context.sharedContext.applicationBindings.openSettings()
|
||||
}
|
||||
placeholderNode.cameraPressed = { [weak self] in
|
||||
self?.dismissInput()
|
||||
self?.controller?.openCamera?(nil)
|
||||
}
|
||||
self.containerNode.insertSubnode(placeholderNode, aboveSubnode: self.gridNode)
|
||||
|
@ -182,7 +182,7 @@ public final class WebSearchController: ViewController {
|
||||
self.interfaceState = self.interfaceState.withUpdatedQuery(query)
|
||||
}
|
||||
|
||||
super.init(navigationBarPresentationData: NavigationBarPresentationData(theme: NavigationBarTheme(rootControllerTheme: presentationData.theme).withUpdatedSeparatorColor(presentationData.theme.rootController.navigationBar.opaqueBackgroundColor), strings: NavigationBarStrings(presentationStrings: presentationData.strings)))
|
||||
super.init(navigationBarPresentationData: NavigationBarPresentationData(theme: NavigationBarTheme(rootControllerTheme: presentationData.theme).withUpdatedSeparatorColor(presentationData.theme.list.plainBackgroundColor).withUpdatedBackgroundColor(presentationData.theme.list.plainBackgroundColor), strings: NavigationBarStrings(presentationStrings: presentationData.strings)))
|
||||
self.statusBar.statusBarStyle = presentationData.theme.rootController.statusBarStyle.style
|
||||
|
||||
self.scrollToTop = { [weak self] in
|
||||
@ -377,8 +377,6 @@ public final class WebSearchController: ViewController {
|
||||
|
||||
self._ready.set(.single(true))
|
||||
self.displayNodeDidLoad()
|
||||
|
||||
self.controllerNode.updateBackgroundAlpha(0.0, transition: .immediate)
|
||||
}
|
||||
|
||||
private func updateInterfaceState(animated: Bool = true, _ f: (WebSearchInterfaceState) -> WebSearchInterfaceState) {
|
||||
|
@ -374,7 +374,7 @@ class WebSearchControllerNode: ASDisplayNode {
|
||||
|
||||
if themeUpdated {
|
||||
self.gridNode.backgroundColor = self.theme.list.plainBackgroundColor
|
||||
self.segmentedBackgroundNode.backgroundColor = self.theme.rootController.navigationBar.opaqueBackgroundColor
|
||||
self.segmentedBackgroundNode.backgroundColor = self.theme.list.plainBackgroundColor
|
||||
self.segmentedSeparatorNode.backgroundColor = self.theme.rootController.navigationBar.separatorColor
|
||||
self.segmentedControlNode.updateTheme(SegmentedControlTheme(theme: self.theme))
|
||||
self.toolbarBackgroundNode.backgroundColor = self.theme.rootController.navigationBar.opaqueBackgroundColor
|
||||
|
Loading…
x
Reference in New Issue
Block a user