Skip to content

Commit

Permalink
Add note that settings apply to video mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Nov 22, 2023
1 parent 1e41739 commit 43c003e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ui/page_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ typedef enum page_input_rows {
* Compile-unit local variables, constants and fields
*/
static lv_coord_t col_dsc[] = {160, 200, 160, 160, 160, 120, LV_GRID_TEMPLATE_LAST};
static lv_coord_t row_dsc[] = {60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST};
static lv_coord_t row_dsc[] = {60, 60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST};

const char *btnOptions[] = {"Toggle OSD", "Main menu", "Toggle DVR", "Center HT", "Calibrate HT", "Go Sleep!", "Toggle fan speed"};
void (* const btnFunctionPointers[])() = {&osd_toggle, &app_switch_to_menu, &dvr_toggle, &ht_set_center_position, &ht_calibrate, &go_sleep, &step_topfan};
Expand Down Expand Up @@ -209,6 +209,12 @@ static lv_obj_t *page_input_create(lv_obj_t *parent, panel_arr_t *arr) {

pageItems[BACK_BTN] = create_label_item(content, "< Back", 1, BACK_BTN, 1);

lv_obj_t *label = lv_label_create(content);
lv_label_set_text(label, "*Settings apply to video mode only");
lv_obj_set_style_text_font(label, &lv_font_montserrat_16, 0);
lv_obj_set_style_pad_top(label, 12, 0);
lv_obj_set_grid_cell(label, LV_GRID_ALIGN_START, 1, 2, LV_GRID_ALIGN_START, pp_input.p_arr.max, 1);

update_inputs();

return page;
Expand Down

0 comments on commit 43c003e

Please sign in to comment.