diff --git a/button/src/main/java/com/github/nikartm/button/FitButton.kt b/button/src/main/java/com/github/nikartm/button/FitButton.kt index 2b9edcd..927ad88 100644 --- a/button/src/main/java/com/github/nikartm/button/FitButton.kt +++ b/button/src/main/java/com/github/nikartm/button/FitButton.kt @@ -569,6 +569,38 @@ class FitButton : LinearLayout { return this } + /** + * Get the disabled background and border color of the button + * @return disabled color [Int] + */ + fun getDisabledColor() : Int = manager!!.getButton().disableColor + + /** + * Set the button disabled background and border color + * @param color [Int] + */ + fun setDisabledButtonColor(color: Int) : FitButton { + manager!!.getButton().disableColor = color + updateView() + return this + } + + /** + * Get the disabled color of button elements + * @return disabled color [Int] + */ + fun getElementsDisabledColor() : Int = manager!!.getButton().elementsDisableColor + + /** + * Set the disabled color of button elements + * @param color [Int] + */ + fun setElementsDisabledButtonColor(color: Int) : FitButton { + manager!!.getButton().elementsDisableColor = color + updateView() + return this + } + /** * Get the button corner radius * @return button corner radius [Float]