From a0f488e215189049f69bded03b62fa481f3fb4cc Mon Sep 17 00:00:00 2001 From: eshifri Date: Mon, 6 Feb 2023 19:02:28 -0800 Subject: [PATCH] Move point of font size reduction from 30 to 29 --- radio/src/gui/colorlcd/model_telemetry.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/radio/src/gui/colorlcd/model_telemetry.cpp b/radio/src/gui/colorlcd/model_telemetry.cpp index 6cb39fcbcb8..ad48483df81 100644 --- a/radio/src/gui/colorlcd/model_telemetry.cpp +++ b/radio/src/gui/colorlcd/model_telemetry.cpp @@ -98,7 +98,7 @@ class SensorValueLabel : public StaticText { } #if LCD_H > LCD_W - if (s.size() >= 30) { + if (s.size() > 28) { setFont(FONT(XS)); } else { setFont(FONT(STD)); @@ -597,7 +597,14 @@ void ModelTelemetryPage::build(FormWindow * window, int8_t focusSensorIndex) auto subttl = new Subtitle(line, rect_t{}, STR_TELEMETRY_SENSORS, 0, COLOR_THEME_PRIMARY1); #if LCD_H > LCD_W - lv_obj_set_grid_cell(subttl->getLvObj(), LV_GRID_ALIGN_START, 0, 3, LV_GRID_ALIGN_CENTER, 0, 1); + lv_obj_set_grid_cell(subttl->getLvObj(), LV_GRID_ALIGN_START, 0, 2, + LV_GRID_ALIGN_CENTER, 0, 1); +#endif + + auto idButton = new TextButton(line, rect_t{}, "Show sensorID"); + lv_obj_set_grid_cell(idButton->getLvObj(), LV_GRID_ALIGN_CENTER, 2, 2, + LV_GRID_ALIGN_CENTER, 0, 1); +#if LCD_H > LCD_W line = form->newLine(&grid2); lv_obj_set_style_pad_row(line->getLvObj(), 0, 0); lv_obj_set_style_pad_column(line->getLvObj(), 4, 0);