Color UI single touch menu navigation (#20053)

This commit is contained in:
Victor Oliveira
2020-11-07 06:00:29 -03:00
committed by GitHub
parent 53cc8a0d6e
commit 2fdeceda58
4 changed files with 16 additions and 3 deletions

View File

@ -647,7 +647,10 @@ void menu_item(const uint8_t row, bool sel ) {
#endif
menu_line(row, sel ? COLOR_SELECTION_BG : COLOR_BACKGROUND);
TERN_(TOUCH_SCREEN, touch.add_control(sel ? CLICK : MENU_ITEM, 0, 2 + 34 * row, 320, 32, encoderTopLine + row));
#if ENABLED(TOUCH_SCREEN)
const TouchControlType tct = TERN(SINGLE_TOUCH_NAVIGATION, true, sel) ? CLICK : MENU_ITEM;
touch.add_control(tct, 0, 2 + 34 * row, 320, 32, encoderTopLine + row);
#endif
}
void MarlinUI::move_axis_screen() {