         locationTextField?.enforceResignFirstResponder()
         animateToOverlayState(overlayMode: false, didCancel: cancel)
         delegate?.urlBarDidLeaveOverlayMode(self)
+        
+        // Cliqz: return back the current theme of the URLBar
+        self.applyTheme(currentTheme)
     }
 
     func prepareOverlayAnimation() {


    lazy var actionButtons: [UIButton] = {
		// Cliqz: Removed StopReloadButton
        return AppConstants.MOZ_MENU ? [self.shareButton, self.menuButton, self.forwardButton, self.backButton, self.stopReloadButton, self.homePageButton] : [self.shareButton, self.bookmarkButton, self.forwardButton, self.backButton, self.newTabButton, self.tabsButton, self.cancelButton]
    }()

    // Cliqz: Added to maintain tab count

    static let TextFieldContentInset = UIOffsetMake(9, 5)
    static let LocationLeftPadding = 5
    static let LocationHeight = 28
    static let ExpandedLocationHeight = 35
    static let LocationContentOffset: CGFloat = 8
    static let TextFieldCornerRadius: CGFloat = 3
    static let TextFieldBorderWidth: CGFloat = 1
