     }
     
     func updateColors() {
-        underline.backgroundColor = accentColor
+        underline.backgroundColor = tintColor
         for button in buttons {
-            button.unselectedColor = defaultTitleColor
-            button.selectedColor = accentColor
+            button.unselectedColor = textColor
+            button.selectedColor = tintColor
         }
     }
     

    func createButton(dataObject: TabDataObject, atIndex index: Int) {
        let button = TabButton(index: index, dataObject: dataObject)
        button.delegate = self
        button.selectedColor = accentColor
        button.unselectedColor = defaultTitleColor
        stackView.addArrangedSubview(button)
        buttons.append(button)
    }

    }
    
    func configureVerticalPositions() {
        if underlineTop {
            underlineBottomConstraint?.active = false
            underlineTopConstraint?.active = true
        } else {
            underlineBottomConstraint?.active = true
            underlineTopConstraint?.active = false
        }
        
        let shadowHeight = 0.5
        let shadowWidth = 0.0

        let shadowOffset: CGSize
        if shadowTop {
            shadowOffset = CGSize(width: shadowWidth, height: -shadowHeight)
        } else {
            shadowOffset = CGSize(width: shadowWidth, height: shadowHeight)
        }
        
        layer.shadowOffset = shadowOffset
