         default:
             log.debug("Unknown Theme \(themeName)")
         }
+        
+        self.currentThemeName = themeName
     }
 }
 

        let bottomToolbarIsHidden = shouldShowFooterForTraitCollection(newCollection)

        urlBar.hideBottomToolbar(!bottomToolbarIsHidden)
        toolbar?.removeFromSuperview()
        toolbar?.browserToolbarDelegate = nil
        footerBackground?.removeFromSuperview()

            toolbar?.browserToolbarDelegate = self
            footerBackground = BlurWrapper(view: toolbar!)
            footerBackground?.translatesAutoresizingMaskIntoConstraints = false
            footer.addSubview(footerBackground!)
            
            // Since this is freshly created, theme needs to be applied
            if let currentThemeName = self.currentThemeName {
                self.applyTheme(currentThemeName)
            }
        }

        view.setNeedsUpdateConstraints()
