         }
     }
     
-    private let errorBackgroundColor = UIColor(white: 0.2, alpha: 1.0)
-    private let regularBackgroundColor = UIColor(red: 51.0/255.0, green: 204.0/255.0, blue: 51.0/255.0, alpha: 1)
-    override public var barTintColor: UIColor? {
-        didSet {
-            underStatusBarView.backgroundColor = barTintColor?.colorWithAlphaComponent(0.85)
-        }
-    }
-    
     private func styleForError(isError: Bool) {
-        barTintColor = isError ? errorBackgroundColor : regularBackgroundColor
+        backgroundColor = isError ? errorBackgroundColor : regularBackgroundColor
         messageLabel.textColor = .whiteColor()
-    }
-    
-    private func hideHairlineBorder() {
-        for view in subviews {
-            if let imageView = view as? UIImageView {
-                imageView.hidden = true
-            }
-        }
     }
     
     private func addStatusBarBackingView() {
         let underStatusBar = UIView(frame: CGRectZero)
-        underStatusBar.backgroundColor = UIColor(white: 0.2, alpha: 0.85)
+        underStatusBar.backgroundColor = backgroundColor.colorWithAlphaComponent(0.85) //UIColor(white: 0.2, alpha: 0.85)
         underStatusBar.translatesAutoresizingMaskIntoConstraints = false
         addSubview(underStatusBar)
         let views = ["underStatusBar":underStatusBar]

    }
}

public class NotificationBanner: UIToolbar {

    public static func showMessage(message: Message) {
        
        guard NSThread.mainThread() == NSThread.currentThread() else {

        currentMessageTimer = nil
        currentMessage = nil
    }
    
    @IBAction @objc private func messageLabelTapped(sender: UIButton) {
        if let key = NotificationBanner.currentMessage?.actionKey,
            let action = Message.actions[key] {
            action()
        }
    }
    
    @IBAction @objc private func closeButtonTapped(sender: UIButton) {
        NotificationBanner.hideCurrentMessage(true) {
            if let next = NotificationBanner.pendingMessages.last {
                NotificationBanner.showMessage(next)
