We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5e1172 commit a5512e3Copy full SHA for a5512e3
2 files changed
conf/ui.h
@@ -81,7 +81,7 @@ extern "C" {
81
#define UI_RECORD_COLS 160, 200, 200, 160, 120, 120, LV_GRID_TEMPLATE_LAST
82
#define UI_RECORD_ROWS 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST
83
#define UI_SOURCE_COLS 160, 160, 200, 160, 160, 160, LV_GRID_TEMPLATE_LAST
84
-#define UI_SOURCE_ROWS 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST
+#define UI_SOURCE_ROWS 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST
85
#define UI_STORAGE_COLS 160, 160, 160, 160, 160, 160, LV_GRID_TEMPLATE_LAST
86
#define UI_STORAGE_ROWS 60, 60, 60, 60, 60, 60, 60, 40, LV_GRID_TEMPLATE_LAST
87
#define UI_VERSION_COLS 160, 160, 160, 160, 160, 160, 160, LV_GRID_TEMPLATE_LAST
src/ui/page_source.c
@@ -81,7 +81,7 @@ enum {
static lv_coord_t col_dsc[] = {UI_SOURCE_COLS};
static lv_coord_t row_dsc[] = {UI_SOURCE_ROWS};
-static lv_obj_t *label[5] = {NULL};
+static lv_obj_t *label[6] = {NULL};
static uint8_t oled_tst_mode = 0; // 0=Normal, 1=CB, 2=Grid, 3=All Black, 4=All White, 5=Boot logo
static bool in_sourcepage = false;
static btn_group_t btn_group0, btn_group1, btn_group2, btn_group3;
@@ -148,6 +148,12 @@ static lv_obj_t *page_source_create(lv_obj_t *parent, panel_arr_t *arr) {
148
create_label_item(cont, buf, 1, ROW_BACK, 3);
149
pp_source.p_arr.max = ROW_COUNT;
150
151
+ if (TARGET_GOGGLE == getTargetType()) {
152
+ label[5] = create_label_item(cont, _lang("Analog input requires Expansion Module"), 1, ROW_COUNT, 3);
153
+ lv_obj_set_style_text_font(label[5], UI_PAGE_LABEL_FONT, 0);
154
+ lv_obj_set_style_pad_top(label[5], UI_PAGE_TEXT_PAD, 0);
155
+ }
156
+
157
return page;
158
}
159
0 commit comments