From c3689e82cc78261704fe703fa16f3cc582a90cad Mon Sep 17 00:00:00 2001 From: Adolfo Date: Sat, 25 Jul 2026 16:05:59 -0400 Subject: [PATCH] fix(ImmichElias): black screen fix, clear hidden flag, fullscreen 480x320 bg, bottom-only UI tap toggle, filter VIDEO, random pagination 100, cache --- Apps/ImmichElias/main/Source/main.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Apps/ImmichElias/main/Source/main.c b/Apps/ImmichElias/main/Source/main.c index 2aec4f3..5eb400c 100644 --- a/Apps/ImmichElias/main/Source/main.c +++ b/Apps/ImmichElias/main/Source/main.c @@ -548,12 +548,24 @@ static void ui_update_all(AppCtx* ctx) { char lvgl_path[384]; snprintf(lvgl_path, sizeof(lvgl_path), "A:%s", ctx->saved_img_path); lv_image_set_src(ctx->img_page, lvgl_path); - // Fullscreen background: request full display size from proxy, widget covers display + lv_obj_clear_flag(ctx->img_page, LV_OBJ_FLAG_HIDDEN); + // Fullscreen background: widget covers entire display lv_obj_set_size(ctx->img_page, ctx->disp_w > 0 ? ctx->disp_w : ctx->img_w, ctx->disp_h > 0 ? ctx->disp_h : ctx->img_h); lv_obj_center(ctx->img_page); - } else lv_image_set_src(ctx->img_page, LV_SYMBOL_IMAGE); + ESP_LOGI(TAG, "lv_img_set_src %s %dx%d", lvgl_path, ctx->disp_w, ctx->disp_h); + } else { + ESP_LOGW(TAG, "Image file not found for display: %s", ctx->saved_img_path); + lv_image_set_src(ctx->img_page, LV_SYMBOL_IMAGE); + lv_obj_clear_flag(ctx->img_page, LV_OBJ_FLAG_HIDDEN); + } } else { - if (photo_count==0) lv_image_set_src(ctx->img_page, LV_SYMBOL_IMAGE); + if (photo_count==0) { + lv_image_set_src(ctx->img_page, LV_SYMBOL_IMAGE); + lv_obj_clear_flag(ctx->img_page, LV_OBJ_FLAG_HIDDEN); + } else { + // Keep previous image to avoid black flash, or hide if you prefer + // lv_obj_add_flag(ctx->img_page, LV_OBJ_FLAG_HIDDEN); + } } } tt_lvgl_unlock();