responsive ui for not implemented features in lock menu (#648)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
its your bedtime
2021-08-16 23:50:49 +03:00
committed by GitHub
parent 69f4858168
commit e1d80d5402
3 changed files with 21 additions and 2 deletions

View File

@@ -180,6 +180,12 @@ static void lock_menu_callback(void* context, uint8_t index) {
break;
default:
// wip message
with_view_model(
dolphin->view_lockmenu, (DolphinViewLockMenuModel * model) {
model->hint_timeout = HINT_TIMEOUT_H;
return true;
});
break;
}
}
@@ -199,6 +205,8 @@ bool dolphin_view_lockmenu_input(InputEvent* event, void* context) {
DolphinViewLockMenuModel* model = view_get_model(dolphin->view_lockmenu);
model->hint_timeout = 0; // clear hint timeout
if(event->key == InputKeyUp) {
model->idx = CLAMP(model->idx - 1, 2, 0);
} else if(event->key == InputKeyDown) {