diff --git a/totp/ui/scenes/authenticate/totp_scene_authenticate.c b/totp/ui/scenes/authenticate/totp_scene_authenticate.c index 12bc956..87e1b50 100644 --- a/totp/ui/scenes/authenticate/totp_scene_authenticate.c +++ b/totp/ui/scenes/authenticate/totp_scene_authenticate.c @@ -1,7 +1,9 @@ #include "totp_scene_authenticate.h" #include #include +#if __has_include() #include +#endif #include "../../../types/common.h" #include "../../constants.h" #include "../../../services/config/config.h" @@ -146,7 +148,11 @@ bool totp_scene_authenticate_handle_event( SCREEN_HEIGHT_CENTER - 5, AlignCenter, AlignCenter); +#if __has_include() dialog_message_set_icon(message, &I_WarningDolphinFlip_45x42, 83, 22); +#else + dialog_message_set_icon(message, &I_DolphinCommon_56x48, 72, 17); +#endif dialog_message_show(plugin_state->dialogs_app, message); dialog_message_free(message); } diff --git a/totp/ui/scenes/standby/standby.c b/totp/ui/scenes/standby/standby.c index 38f861d..6ac4d65 100644 --- a/totp/ui/scenes/standby/standby.c +++ b/totp/ui/scenes/standby/standby.c @@ -1,10 +1,16 @@ #include "standby.h" +#if __has_include() #include +#endif #include #include "../../constants.h" void totp_scene_standby_render(Canvas* const canvas) { +#if __has_include() canvas_draw_icon(canvas, SCREEN_WIDTH - 50, SCREEN_HEIGHT - 44, &I_WarningDolphinFlip_45x42); +#else + canvas_draw_icon(canvas, SCREEN_WIDTH - 56, SCREEN_HEIGHT - 48, &I_DolphinCommon_56x48); +#endif canvas_set_font(canvas, FontPrimary); canvas_draw_str_aligned(canvas, 5, 10, AlignLeft, AlignTop, "CLI command");