From ebb4be2aef5bbe780aee73d2f3596b26b09e5ae1 Mon Sep 17 00:00:00 2001 From: Kacper Kasper Date: Tue, 2 Oct 2018 19:12:21 +0200 Subject: [PATCH] Make spinner buttons look consistent with other controls Change-Id: Icb29772c91687f4c7e4795a726636cf588b83f16 Reviewed-on: https://review.haiku-os.org/610 Reviewed-by: waddlesplash --- src/kits/interface/AbstractSpinner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/AbstractSpinner.cpp b/src/kits/interface/AbstractSpinner.cpp index 02709ca197..75ac67c12a 100644 --- a/src/kits/interface/AbstractSpinner.cpp +++ b/src/kits/interface/AbstractSpinner.cpp @@ -347,7 +347,7 @@ SpinnerButton::Draw(BRect updateRect) BView::Draw(updateRect); - float frameTint = B_DARKEN_1_TINT; + float frameTint = fIsEnabled ? B_DARKEN_1_TINT : B_NO_TINT; float fgTint; if (!fIsEnabled) @@ -380,6 +380,7 @@ SpinnerButton::Draw(BRect updateRect) borders |= be_control_look->B_LEFT_BORDER; uint32 flags = fIsMouseDown ? BControlLook::B_ACTIVATED : 0; + flags |= !fIsEnabled ? BControlLook::B_DISABLED : 0; // draw the button be_control_look->DrawButtonFrame(this, rect, updateRect,