Color UI single touch menu navigation (#20053)
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user