     override func apply(theme: Theme) {
         super.apply(theme: theme)
         selectedImageViewController.apply(theme: theme)
+        searchViewController.apply(theme: theme)
         searchResultsCollectionViewController.apply(theme: theme)
         closeButton.tintColor = theme.colors.primaryText
         nextButton.tintColor = theme.colors.link

                self.updateScrollViewInsets(preserveAnimation: true)
            }
        }, completion: { _ in
            self.useNavigationBarVisibleHeightForScrollViewInsets = false
            self.navigationBar.isUnderBarViewHidingEnabled = true
            completion?()
        })
    }

            let newKeyboardFrame = newKeyboardFrame,
            newKeyboardFrame.origin.y > oldKeyboardFrame.origin.y { // hiding
            if let scrollView = scrollView, scrollView.isDragging {
                navigationBar.isUnderBarViewHidingEnabled = true
                useNavigationBarVisibleHeightForScrollViewInsets = false
                updateScrollViewInsets(preserveAnimation: true)
                isKeyboardShowing = false
            } else {
                setUnderBarViewPercentHidden(0) {
                    self.isKeyboardShowing = false
                    self.navigationBar.isUnderBarViewHidingEnabled = true
                    self.useNavigationBarVisibleHeightForScrollViewInsets = false
                }
            }
        }
