Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
UI magic (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnsAnns authored Jun 10, 2024
2 parents d11b314 + e76717f commit 8a66d2a
Show file tree
Hide file tree
Showing 7 changed files with 1,262 additions and 768 deletions.
815 changes: 652 additions & 163 deletions node/code/modules/display_handler/background_1.c

Large diffs are not rendered by default.

246 changes: 123 additions & 123 deletions node/code/modules/display_handler/feed.c

Large diffs are not rendered by default.

224 changes: 112 additions & 112 deletions node/code/modules/display_handler/info.c

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions node/code/modules/display_handler/init_lvgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void init_default_screen(void){
/* Style for top bar */
static lv_style_t style_top_bar;
lv_style_init(&style_top_bar);
lv_style_set_bg_color(&style_top_bar,lv_color_hex(0x545354));
lv_style_set_bg_color(&style_top_bar,lv_color_hex(0x6e1b50));
lv_style_set_border_width(&style_top_bar,0);
lv_style_set_radius(&style_top_bar,0);

Expand All @@ -246,6 +246,11 @@ void init_default_screen(void){
lv_obj_add_style(top_bar,&style_top_bar,LV_PART_MAIN);
lv_obj_clear_flag(top_bar,LV_OBJ_FLAG_SCROLLABLE);

// // Add a label to the top bar
lv_obj_t * pet_label = lv_label_create(top_bar);
lv_label_set_text(pet_label, "Kevin the Frog | Lvl 2 | 89/100 | Disconnected");
lv_obj_set_style_text_color(pet_label, lv_color_hex(0xFFFFFF), LV_PART_MAIN);

// /* Style for center */
static lv_style_t style_center;
lv_style_init(&style_center);
Expand All @@ -267,7 +272,7 @@ void init_default_screen(void){
/* Style of the bottom bar*/
static lv_style_t style_bottom_bar;
lv_style_init(&style_bottom_bar);
lv_style_set_bg_color(&style_bottom_bar,lv_color_hex(0x858585));
lv_style_set_bg_color(&style_bottom_bar,lv_color_hex(0x6e1b50));
lv_style_set_border_width(&style_bottom_bar,0);
lv_style_set_radius(&style_bottom_bar,0);

Expand Down Expand Up @@ -476,8 +481,8 @@ int init_lvgl(void)


init_default_screen();
init_not_registered();
// init_registered_pet();
//init_not_registered();
init_registered_pet();
init_menu();
return 0;
}
246 changes: 123 additions & 123 deletions node/code/modules/display_handler/medicate.c

Large diffs are not rendered by default.

230 changes: 115 additions & 115 deletions node/code/modules/display_handler/play.c

Large diffs are not rendered by default.

256 changes: 128 additions & 128 deletions node/code/modules/display_handler/wash.c

Large diffs are not rendered by default.

0 comments on commit 8a66d2a

Please sign in to comment.