* Highlight active inputs and mixies (#337)
This commit is contained in:
@@ -337,7 +337,7 @@ void CommonInputOrMixButton::drawFlightModes(BitmapBuffer *dc,
|
|||||||
void CommonInputOrMixButton::paint(BitmapBuffer * dc)
|
void CommonInputOrMixButton::paint(BitmapBuffer * dc)
|
||||||
{
|
{
|
||||||
dc->drawSolidFilledRect(0, 0, width(), height(),
|
dc->drawSolidFilledRect(0, 0, width(), height(),
|
||||||
/*hasFocus() ? FOCUS_BGCOLOR :*/ FIELD_BGCOLOR);
|
isActive() ? HIGHLIGHT_COLOR : FIELD_BGCOLOR);
|
||||||
paintBody(dc);
|
paintBody(dc);
|
||||||
|
|
||||||
if (!hasFocus())
|
if (!hasFocus())
|
||||||
@@ -397,6 +397,7 @@ class InputLineButton : public CommonInputOrMixButton
|
|||||||
if (line.flightModes) {
|
if (line.flightModes) {
|
||||||
drawFlightModes(dc, line.flightModes, textColor);
|
drawFlightModes(dc, line.flightModes, textColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user