Highlite active inputs and mixies (#337). Take 2. (#361)

* Highlight active inputs and mixies (#337)
This commit is contained in:
eshifri
2021-06-29 08:55:32 +02:00
committed by GitHub
parent 2650821475
commit 2aa52965a9
+2 -1
View File
@@ -337,7 +337,7 @@ void CommonInputOrMixButton::drawFlightModes(BitmapBuffer *dc,
void CommonInputOrMixButton::paint(BitmapBuffer * dc)
{
dc->drawSolidFilledRect(0, 0, width(), height(),
/*hasFocus() ? FOCUS_BGCOLOR :*/ FIELD_BGCOLOR);
isActive() ? HIGHLIGHT_COLOR : FIELD_BGCOLOR);
paintBody(dc);
if (!hasFocus())
@@ -397,6 +397,7 @@ class InputLineButton : public CommonInputOrMixButton
if (line.flightModes) {
drawFlightModes(dc, line.flightModes, textColor);
}
}
};