1
0
Fork 0

Change animation direction in menus

This commit is contained in:
Joaquim José Almeida Pereira 2021-04-15 15:55:01 +01:00
parent f5e43a1668
commit 969bb8e721
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ void List::OnButtonEvent(lv_obj_t * object, lv_event_t event) {
if ( event == LV_EVENT_RELEASED ) { if ( event == LV_EVENT_RELEASED ) {
for(int i = 0; i < MAXLISTITEMS; i++) { for(int i = 0; i < MAXLISTITEMS; i++) {
if ( apps[i] != Apps::None && object == itemApps[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; running = false;
return; return;
} }

View file

@ -128,7 +128,7 @@ bool Tile::Refresh() {
void Tile::OnObjectEvent(lv_obj_t *obj, lv_event_t event, uint32_t buttonId) { void Tile::OnObjectEvent(lv_obj_t *obj, lv_event_t event, uint32_t buttonId) {
if(event == LV_EVENT_VALUE_CHANGED) { if(event == LV_EVENT_VALUE_CHANGED) {
app->StartApp(apps[buttonId], DisplayApp::FullRefreshDirections::Down); app->StartApp(apps[buttonId], DisplayApp::FullRefreshDirections::Up);
running = false; running = false;
} }
} }