@@ -68,6 +68,23 @@ void Menu::init_ui() {
6868 lv_group_add_obj (group_, ui_reset_btn);
6969 lv_group_add_obj (group_, ui_quit_btn);
7070
71+ // set the focused style for all the buttons to have a red border
72+ lv_style_init (&button_style_);
73+ lv_style_set_border_color (&button_style_, lv_palette_main (LV_PALETTE_RED));
74+ lv_style_set_border_width (&button_style_, 2 );
75+
76+ lv_obj_add_style (ui_resume_btn, &button_style_, LV_STATE_FOCUSED);
77+ lv_obj_add_style (ui_volume_mute_btn, &button_style_, LV_STATE_FOCUSED);
78+ lv_obj_add_style (ui_volume_dec_btn, &button_style_, LV_STATE_FOCUSED);
79+ lv_obj_add_style (ui_volume_inc_btn, &button_style_, LV_STATE_FOCUSED);
80+ lv_obj_add_style (ui_btn_slot_dec, &button_style_, LV_STATE_FOCUSED);
81+ lv_obj_add_style (ui_btn_slot_inc, &button_style_, LV_STATE_FOCUSED);
82+ lv_obj_add_style (ui_load_btn, &button_style_, LV_STATE_FOCUSED);
83+ lv_obj_add_style (ui_save_btn, &button_style_, LV_STATE_FOCUSED);
84+ lv_obj_add_style (ui_Dropdown2, &button_style_, LV_STATE_FOCUSED);
85+ lv_obj_add_style (ui_reset_btn, &button_style_, LV_STATE_FOCUSED);
86+ lv_obj_add_style (ui_quit_btn, &button_style_, LV_STATE_FOCUSED);
87+
7188 // now focus the resume button
7289 lv_group_focus_obj (ui_resume_btn);
7390 lv_group_focus_freeze (group_, false );
0 commit comments