         backgroundView.addSubview(offLabel)
 
         textLabel = UILabel()
-        textLabel.textColor = .grayColor()
+        textLabel.textColor = offTextColor
         textLabel.font = .systemFontOfSize(12)
         
         // thumb

                    self.thumbView.frame = CGRectMake(self.bounds.size.width - (normalKnobWidth + self.knobMargin), self.thumbView.frame.origin.y, normalKnobWidth, self.thumbView.frame.size.height)
                }
                
                self.backgroundView.backgroundColor = self.onTintColor
                self.backgroundView.layer.borderColor = self.onTintColor.CGColor
                self.thumbView.backgroundColor = self.onThumbTintColor

                    self.backgroundView.backgroundColor = self.inactiveColor
                }
                
                self.textLabel.textColor = self.offTextColor
                self.backgroundView.layer.borderColor = self.borderColor.CGColor
                self.thumbView.backgroundColor = self.thumbTintColor
                self.onImageView.alpha = 0
