From e99cbd89568bb73149b3cf7d110e7720a2a9fe7f Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Fri, 14 Jul 2017 09:24:38 -0230 Subject: [PATCH] Made ColorWidget honour disabled colors. --- src/gui/ColorWidget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/ColorWidget.cxx b/src/gui/ColorWidget.cxx index aa0741a4a..e5af16815 100644 --- a/src/gui/ColorWidget.cxx +++ b/src/gui/ColorWidget.cxx @@ -55,7 +55,7 @@ void ColorWidget::drawWidget(bool hilite) s.vLine(_x + _w - 1, _y, _y +_h - 1, kShadowColor); // Show the currently selected color - s.fillRect(_x+1, _y+1, _w-2, _h-1, _color); + s.fillRect(_x+1, _y+1, _w-2, _h-1, isEnabled() ? _color : kWidColor); // Cross out the grid? if(_crossGrid)