From 969bb8e721efc21cc12a16621c705da74425e493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaquim=20Jos=C3=A9=20Almeida=20Pereira?= Date: Thu, 15 Apr 2021 15:55:01 +0100 Subject: [PATCH] Change animation direction in menus --- src/displayapp/screens/List.cpp | 2 +- src/displayapp/screens/Tile.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/displayapp/screens/List.cpp b/src/displayapp/screens/List.cpp index 87cfa6db..82da4d4c 100644 --- a/src/displayapp/screens/List.cpp +++ b/src/displayapp/screens/List.cpp @@ -116,7 +116,7 @@ void List::OnButtonEvent(lv_obj_t * object, lv_event_t event) { if ( event == LV_EVENT_RELEASED ) { for(int i = 0; i < MAXLISTITEMS; i++) { if ( apps[i] != Apps::None && object == itemApps[i] ) { - app->StartApp(apps[i], DisplayApp::FullRefreshDirections::Down); + app->StartApp(apps[i], DisplayApp::FullRefreshDirections::Up); running = false; return; } diff --git a/src/displayapp/screens/Tile.cpp b/src/displayapp/screens/Tile.cpp index 8fa7fd07..b1dfaf76 100644 --- a/src/displayapp/screens/Tile.cpp +++ b/src/displayapp/screens/Tile.cpp @@ -128,7 +128,7 @@ bool Tile::Refresh() { void Tile::OnObjectEvent(lv_obj_t *obj, lv_event_t event, uint32_t buttonId) { if(event == LV_EVENT_VALUE_CHANGED) { - app->StartApp(apps[buttonId], DisplayApp::FullRefreshDirections::Down); + app->StartApp(apps[buttonId], DisplayApp::FullRefreshDirections::Up); running = false; } }