summaryrefslogtreecommitdiff
path: root/apps/menus/display_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/display_menu.c')
-rw-r--r--apps/menus/display_menu.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c
index 7e7b5a6903..957307d8a8 100644
--- a/apps/menus/display_menu.c
+++ b/apps/menus/display_menu.c
@@ -500,14 +500,25 @@ static int touch_mode_callback(int action,const struct menu_item_ex *this_item)
500 } 500 }
501 return action; 501 return action;
502} 502}
503
504static int line_padding_callback(int action,const struct menu_item_ex *this_item)
505{
506 (void)this_item;
507
508 if (action == ACTION_EXIT_MENUITEM)
509 viewportmanager_theme_changed(THEME_LISTS);
510 return action;
511}
512
503MENUITEM_SETTING(touch_mode, &global_settings.touch_mode, touch_mode_callback); 513MENUITEM_SETTING(touch_mode, &global_settings.touch_mode, touch_mode_callback);
504 514
505MENUITEM_FUNCTION(touchscreen_menu_calibrate, 0, ID2P(LANG_TOUCHSCREEN_CALIBRATE), calibrate, 515MENUITEM_FUNCTION(touchscreen_menu_calibrate, 0, ID2P(LANG_TOUCHSCREEN_CALIBRATE), calibrate,
506 NULL, NULL, Icon_NOICON); 516 NULL, NULL, Icon_NOICON);
507MENUITEM_FUNCTION(touchscreen_menu_reset_calibration, 0, ID2P(LANG_TOUCHSCREEN_RESET_CALIBRATION), reset_mapping, 517MENUITEM_FUNCTION(touchscreen_menu_reset_calibration, 0, ID2P(LANG_TOUCHSCREEN_RESET_CALIBRATION), reset_mapping,
508 NULL, NULL, Icon_NOICON); 518 NULL, NULL, Icon_NOICON);
519MENUITEM_SETTING(list_line_padding, &global_settings.list_line_padding, line_padding_callback);
509 520
510MAKE_MENU(touchscreen_menu, ID2P(LANG_TOUCHSCREEN_SETTINGS), NULL, Icon_NOICON, &touch_mode, 521MAKE_MENU(touchscreen_menu, ID2P(LANG_TOUCHSCREEN_SETTINGS), NULL, Icon_NOICON, &list_line_padding, &touch_mode,
511 &touchscreen_menu_calibrate, &touchscreen_menu_reset_calibration); 522 &touchscreen_menu_calibrate, &touchscreen_menu_reset_calibration);
512#endif 523#endif
513 524