 
     let prevFrame = window.frame
 
-    window.titlebarAppearsTransparent = false
+    self.window.titlebarAppearsTransparent = false
 
     self.workspace.removeFromSuperview()
 

  }

  func unthemeTitlebar(dueFullScreen: Bool) {
    self.clearCustomTitle()

    guard let contentView = self.window.contentView else {

      self.window.setFrame(prevFrame, display: true, animate: false)
      self.titlebarThemed = false
    }

    self.window.makeFirstResponder(firstResponder)
  }

  func set(repUrl url: URL?, themed: Bool) {
