plugins: imageviewer: Hide info by default when loading file

Looks nicer, especially when the "View Album Art"
option is used.

Add delay to progress bar, so it only appears when
250ms have passed.

Change-Id: I183c839f1ab206385cd01327922933b544c4b78b
This commit is contained in:
Christian Soffke 2026-04-15 19:17:43 +02:00 committed by Solomon Peachy
parent fd7ae09e7a
commit f4dc4d89dc
34 changed files with 160 additions and 114 deletions

View file

@ -176,7 +176,8 @@ static int load_image(char *filename, struct image_info *info,
return PLUGIN_OUTOFMEM;
}
if (!iv->running_slideshow)
if (!iv->settings->hide_info &&
!iv->running_slideshow)
{
rb->lcd_puts(0, 0, rb->strrchr(filename,'/')+1);
rb->lcd_putsf(0, 1, "loading %dx%d%s",
@ -206,7 +207,8 @@ static int load_image(char *filename, struct image_info *info,
return PLUGIN_ERROR;
}
if (!iv->running_slideshow)
if (!iv->settings->hide_info &&
!iv->running_slideshow)
{
rb->snprintf(print, sizeof(print), " %ld.%02ld sec ", time/HZ, time%HZ);
rb->lcd_getstringsize(print, &w, &h); /* centered in progress bar */
@ -225,7 +227,8 @@ static int load_image(char *filename, struct image_info *info,
buf_images = buf_root = buf + size;
buf_images_size = root_size = *buf_size - size;
if (!iv->running_slideshow)
if (!iv->settings->hide_info &&
!iv->running_slideshow)
{
rb->lcd_putsf(0, 2, "image %dx%d", bmp.width, bmp.height);
rb->lcd_update();