Improved Radiobutton widget color when disabled

This commit is contained in:
Dimitris Panokostas 2020-05-14 20:47:43 +02:00
parent 1ec8599cd8
commit fc168295e5

View file

@ -165,7 +165,10 @@ namespace gcn
auto shadowColor = faceColor - 0x303030;
shadowColor.a = alpha;
graphics->setColor(getBackgroundColor());
auto backCol = getBackgroundColor();
if (!isEnabled())
backCol = backCol - 0x303030;
graphics->setColor(backCol);
int i;
const auto hh = (h + 1) / 2;