no background highlighting of disabled widgets

This commit is contained in:
thrust26 2017-12-21 08:48:07 +01:00
parent 24fccba025
commit 65ed71479a
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ void Widget::draw()
x++; y++; w-=2; h-=2;
}
#ifndef FLAT_UI
s.fillRect(x, y, w, h, (_flags & WIDGET_HILITED) ? _bgcolorhi : _bgcolor);
s.fillRect(x, y, w, h, (_flags & WIDGET_HILITED) && isEnabled() ? _bgcolorhi : _bgcolor);
#else
s.fillRect(x, y, w, h, (_flags & WIDGET_HILITED) && isEnabled() ? _bgcolorhi : _bgcolor);
#endif