         }
         // relayout to account for size changes
         self.viewDidLayoutSubviews()
+    }
+    
+    func setTextTheme(theme: TextColorTheme) {
+        switch theme {
+            case .Light:
+                recolorText(lightTextColor)
+            case .Dark:
+                recolorText(darkTextColor)
+        }
+    }
+    
+    func recolorText(color: UIColor) {
+        titleLabel.textColor = color
+        if textView != nil {
+            textView.textColor = color
+        }
+        buttonLabel.textColor = color
     }
     
     required init(coder aDecoder: NSCoder) {

        self.view.addSubview(self.containerView!)
        
        // Background view/main color
        self.modalBackgroundView = UIView()
        modalBackgroundView.backgroundColor = baseColor
        modalBackgroundView.layer.cornerRadius = 4
        modalBackgroundView.layer.masksToBounds = true
        self.containerView.addSubview(modalBackgroundView!)
        
        // Icon
        self.iconImage = iconImage

    
    var defaultColor = UIColorFromHex(0x34495e, alpha: 1)
    
    enum TextColorTheme {
        case Dark, Light
    }
    var darkTextColor = UIColorFromHex(0x000000, alpha: 0.75)
    var lightTextColor = UIColorFromHex(0xffffff, alpha: 0.9)
    
    let baseHeight:CGFloat = 160.0
    var alertWidth:CGFloat = 290.0
    let buttonHeight:CGFloat = 70.0
    let padding:CGFloat = 20.0
    
    var viewWidth:CGFloat?
    var viewHeight:CGFloat?
