     @IBOutlet weak var lumValueLabel: UILabel!
     @IBOutlet weak var lumLabel: UILabel!
     
-    let BUTTON_COLOR_WAIT_NORMAL          = UIColor.colorWithHex("#D00000")
-    let BUTTON_COLOR_WAIT_HIGHLIGHT       = UIColor.colorWithHex("#D00000")
-    let BUTTON_COLOR_OPEN_NORMAL          = UIColor.colorWithHex("#33BB33")
-    let BUTTON_COLOR_OPEN_HIGHLIGHT       = UIColor.colorWithHex("#208840")
-    let BUTTON_COLOR_SCANNING_NORMAL      = UIColor.colorWithHex("#D00000") // "#FF8800")
-    let BUTTON_COLOR_SCANNING_HIGHLIGHT   = UIColor.colorWithHex("#D00000") // 880000")
-    let BUTTON_COLOR_START_SCAN_NORMAL    = UIColor.colorWithHex("#FFAA00") //#4488CC")
-    let BUTTON_COLOR_START_SCAN_HIGHLIGHT = UIColor.colorWithHex("#FFDD00") //#4488CC")
-    
+    let Colors = GOOpenerColors()
+    
+    // An enum to keep track of the application states defined.
     enum States {
         case Connected
         case Initializing

    func updateOpenButtonNormal() {
        
        UIView.animateWithDuration(0.5, animations: {
            self.openButton.backgroundColor = self.BUTTON_COLOR_OPEN_NORMAL
        })
        
        openButton.setBackgroundImage(
            UIImage.imageWithColor(BUTTON_COLOR_OPEN_HIGHLIGHT),
            forState: UIControlState.Highlighted
        )
        

    func updateOpenButtonScanning() {
        
        UIView.animateWithDuration(0.5, animations: {
            self.openButton.backgroundColor = self.Colors.scanning
        })
        
        self.openButton.setBackgroundImage(
            UIImage.imageWithColor(self.Colors.scanning),
            forState: UIControlState.Highlighted
        )
        
