         autoHideTitlePreference = newTitlePref
         mouseOver = false
 
-        if sender.tag > 0 {
-            panel.titleVisibility = .visible
-        }
-        else
-        if sender.tag < 0 {
-            panel.titleVisibility = .hidden
-        }
         updateTitleBar(didChange: true)
         cacheSettings()
     }

        
        let newTitlePref = HeliumPanelController.AutoHideTitlePreference(rawValue: sender.tag)!
        if autoHideTitlePreference == .outside {
            //self.panel.styleMask.formUnion(.fullSizeContentView)
            self.panel.titlebarAppearsTransparent = false
            self.titleDragButton?.isTransparent = false
            self.titleDragButton?.isBordered = true
        }
        else
        {
            //self.panel.styleMask.formSymmetricDifference(.fullSizeContentView)
            self.panel.titlebarAppearsTransparent = true
            self.titleDragButton?.isTransparent = true
            self.titleDragButton?.isBordered = false

                panel.ignoresMouseEvents = currentlyTranslucent
            }
            if currentlyTranslucent {
                panel.alphaValue = alpha
                panel.isOpaque = false
            } else {
                panel.isOpaque = true
                panel.alphaValue = 1
            }
        }
    }
