fix(reynabot): Replace unsupported Unicode emojis with custom girl/boy PNG assets
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 328 B |
Binary file not shown.
|
After Width: | Height: | Size: 384 B |
@@ -681,8 +681,12 @@ static void on_show(AppHandle app, void* data, lv_obj_t* parent) {
|
||||
lv_obj_set_style_border_color(ctx->btn_grace, lv_color_hex(0x2D2B36), LV_PART_MAIN);
|
||||
lv_obj_add_event_cb(ctx->btn_grace, speaker_event_cb, LV_EVENT_CLICKED, ctx);
|
||||
|
||||
lv_obj_t* icon_grace = lv_label_create(ctx->btn_grace);
|
||||
lv_label_set_text(icon_grace, "🚺");
|
||||
lv_obj_t* icon_grace = lv_image_create(ctx->btn_grace);
|
||||
lv_obj_set_size(icon_grace, 80, 80);
|
||||
char path_grace[256] = "A:";
|
||||
size_t sz_grace = sizeof(path_grace) - 2;
|
||||
tt_app_get_assets_child_path(ctx->app, "girl.png", path_grace + 2, &sz_grace);
|
||||
lv_image_set_src(icon_grace, path_grace);
|
||||
|
||||
lv_obj_t* lbl_grace = lv_label_create(ctx->btn_grace);
|
||||
lv_label_set_text(lbl_grace, "Grace");
|
||||
@@ -701,8 +705,12 @@ static void on_show(AppHandle app, void* data, lv_obj_t* parent) {
|
||||
lv_obj_set_style_border_color(ctx->btn_elias, lv_color_hex(0x2D2B36), LV_PART_MAIN);
|
||||
lv_obj_add_event_cb(ctx->btn_elias, speaker_event_cb, LV_EVENT_CLICKED, ctx);
|
||||
|
||||
lv_obj_t* icon_elias = lv_label_create(ctx->btn_elias);
|
||||
lv_label_set_text(icon_elias, "🚹");
|
||||
lv_obj_t* icon_elias = lv_image_create(ctx->btn_elias);
|
||||
lv_obj_set_size(icon_elias, 80, 80);
|
||||
char path_elias[256] = "A:";
|
||||
size_t sz_elias = sizeof(path_elias) - 2;
|
||||
tt_app_get_assets_child_path(ctx->app, "boy.png", path_elias + 2, &sz_elias);
|
||||
lv_image_set_src(icon_elias, path_elias);
|
||||
|
||||
lv_obj_t* lbl_elias = lv_label_create(ctx->btn_elias);
|
||||
lv_label_set_text(lbl_elias, "Elias");
|
||||
|
||||
Reference in New Issue
Block a user