@@ -21,6 +21,7 @@ class ImageView(Activity):
2121
2222 def onCreate (self ):
2323 screen = lv .obj ()
24+ screen .remove_flag (lv .obj .FLAG .SCROLLABLE )
2425 self .image = lv .image (screen )
2526 self .image .center ()
2627 self .image .add_flag (lv .obj .FLAG .CLICKABLE )
@@ -39,6 +40,7 @@ def onCreate(self):
3940 self .prev_button .add_event_cb (lambda e : self .show_prev_image (),lv .EVENT .CLICKED ,None )
4041 prev_label = lv .label (self .prev_button )
4142 prev_label .set_text (lv .SYMBOL .LEFT )
43+ prev_label .set_style_text_font (lv .font_montserrat_16 , 0 )
4244 self .play_button = lv .button (screen )
4345 self .play_button .align (lv .ALIGN .BOTTOM_MID ,0 ,0 )
4446 self .play_button .set_style_opa (lv .OPA .TRANSP , 0 )
@@ -55,6 +57,7 @@ def onCreate(self):
5557 self .next_button .add_event_cb (lambda e : self .show_next_image (),lv .EVENT .CLICKED ,None )
5658 next_label = lv .label (self .next_button )
5759 next_label .set_text (lv .SYMBOL .RIGHT )
60+ next_label .set_style_text_font (lv .font_montserrat_16 , 0 )
5861 #screen.add_event_cb(self.print_events, lv.EVENT.ALL, None)
5962 self .setContentView (screen )
6063
@@ -216,6 +219,7 @@ def show_image(self, name):
216219 cf = lv .COLOR_FORMAT .RGB565
217220 if color_format == "GRAY" :
218221 cf = lv .COLOR_FORMAT .L8
222+ stride = width
219223 else :
220224 print (f"WARNING: unknown color format { color_format } , assuming RGB565..." )
221225 self .current_image_dsc = lv .image_dsc_t ({
0 commit comments