Made ColorWidget honour disabled colors.

This commit is contained in:
Stephen Anthony 2017-07-14 09:24:38 -02:30
parent 7904f3e900
commit e99cbd8956
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void ColorWidget::drawWidget(bool hilite)
s.vLine(_x + _w - 1, _y, _y +_h - 1, kShadowColor); s.vLine(_x + _w - 1, _y, _y +_h - 1, kShadowColor);
// Show the currently selected color // 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? // Cross out the grid?
if(_crossGrid) if(_crossGrid)