Apply a "up" transition when an app is opened.
This commit is contained in:
		
							parent
							
								
									35e221078b
								
							
						
					
					
						commit
						4de22601f5
					
				@ -162,6 +162,7 @@ void DisplayApp::RunningState() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  if(!currentScreen->Refresh()) {
 | 
					  if(!currentScreen->Refresh()) {
 | 
				
			||||||
    currentScreen.reset(nullptr);
 | 
					    currentScreen.reset(nullptr);
 | 
				
			||||||
 | 
					    lvgl.SetFullRefresh(Components::LittleVgl::FullRefreshDirections::Up);
 | 
				
			||||||
    onClockApp = false;
 | 
					    onClockApp = false;
 | 
				
			||||||
    switch(nextApp) {
 | 
					    switch(nextApp) {
 | 
				
			||||||
      case Apps::None:
 | 
					      case Apps::None:
 | 
				
			||||||
 | 
				
			|||||||
@ -65,9 +65,11 @@ void LittleVgl::InitTouchpad() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void LittleVgl::SetFullRefresh(FullRefreshDirections direction) {
 | 
					void LittleVgl::SetFullRefresh(FullRefreshDirections direction) {
 | 
				
			||||||
  scrollDirection = direction;
 | 
					  if(scrollDirection == FullRefreshDirections::None) {
 | 
				
			||||||
  if(scrollDirection == FullRefreshDirections::Down)
 | 
					    scrollDirection = direction;
 | 
				
			||||||
    lv_disp_set_direction(lv_disp_get_default(), 1);
 | 
					    if (scrollDirection == FullRefreshDirections::Down)
 | 
				
			||||||
 | 
					      lv_disp_set_direction(lv_disp_get_default(), 1);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void LittleVgl::FlushDisplay(const lv_area_t *area, lv_color_t *color_p) {
 | 
					void LittleVgl::FlushDisplay(const lv_area_t *area, lv_color_t *color_p) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user