     }
     
     //
-    //  MARK: - Install the color view.
-    //
-    
-    func installColorView() {
+    //  Install the color overlay view into the view hierarchy
+    //  and lay it out using autolayout.
+    //
+    
+    func layoutColorOverlayView() {
         
         self.addSubview(self._colorOverlay)
         

    }
    
    //
    //  MARK: - Apply the Primary Color
    //
    
    //
    //  This method applies the border and background colors.
    //
    //  The button colors are applied when we generate the buttons.
    //
    
    func applyColor() {
        
        //
        //  Apply the border colors.
        //
        
        
        let space : CGColorSpace = CGColorSpaceCreateDeviceRGB()
        let color : CGColor = CGColorCreate(space, [0.0, 0.0, 0.0, 0.3])
        
        self.layer.borderColor = color
        self.layer.borderWidth = 0.5
        
        //
        //  Apply the background colors.
        //
        
        if self.translucent == false {
            
            self._colorOverlay.backgroundColor = UIColor.clearColor();
            self.backgroundColor = self.barTintColor
        }
            
        else {
            self._colorOverlay.alpha = 0.85
            self._colorOverlay.backgroundColor = self.barTintColor
            self._colorOverlay.opaque = false
            self._whiteOverlay.backgroundColor = UIColor(white: 0.97, alpha: 0.5)
            self._whiteOverlay.opaque = false
            self.opaque = false
            self.backgroundColor = UIColor.clearColor()
        }

        }
    }
    
    //  Buttons
    
    var buttons : Array<UIButton> = Array()
    
    //  Titles
    
    var titles : Array<String> = [] {
        didSet {
            self.layoutButtons()
        }
    }
    
    //
    //  MARK: - Appearance
    //
    
    //  Fonts 
    
    let buttonFont : UIFont? = UIFont.systemFontOfSize(14.0)
    let buttonSelectedFont : UIFont? = UIFont.boldSystemFontOfSize(16.0)
    
    //  Tint Color
    
    @IBInspectable override var tintColor : UIColor! {
        didSet {
