ESP32: обновить подпись и выровнять индикаторы HOME

This commit is contained in:
AidarKC
2026-06-09 17:52:33 +04:00
parent 1488bc3d6d
commit b5276890fb
4 changed files with 10 additions and 9 deletions
@@ -35,7 +35,7 @@
#define TEXT_EDIT_PANEL_Y 112
#define TEXT_EDIT_PANEL_W 460
#define TEXT_EDIT_PANEL_H 330
#define TEST_VERSION "NAV v8"
#define TEST_VERSION "SHiNE subserver (v.0.18)"
enum Screen {
SCREEN_HOME,
@@ -478,11 +478,11 @@ static void drawTopStatusIndicators() {
lv_label_set_text(battLabel, battText.c_str());
lv_obj_set_style_text_font(battLabel, &lv_font_montserrat_16, 0);
lv_obj_set_style_text_color(battLabel, lv_color_hex(0xC9D3DE), 0);
lv_obj_set_pos(battLabel, 286, 18);
lv_obj_set_pos(battLabel, 297, 18);
lv_obj_t *battery = lv_obj_create(gRoot);
lv_obj_set_size(battery, 32, 16);
lv_obj_set_pos(battery, 338, 20);
lv_obj_set_pos(battery, 349, 20);
lv_obj_set_style_radius(battery, 4, 0);
lv_obj_set_style_bg_opa(battery, LV_OPA_TRANSP, 0);
lv_obj_set_style_border_width(battery, 2, 0);
@@ -491,7 +491,7 @@ static void drawTopStatusIndicators() {
lv_obj_t *batteryCap = lv_obj_create(gRoot);
lv_obj_set_size(batteryCap, 4, 8);
lv_obj_set_pos(batteryCap, 370, 24);
lv_obj_set_pos(batteryCap, 381, 24);
lv_obj_set_style_radius(batteryCap, 2, 0);
lv_obj_set_style_bg_color(batteryCap, lv_color_hex(0xC9D3DE), 0);
lv_obj_set_style_border_width(batteryCap, 0, 0);
@@ -500,14 +500,14 @@ static void drawTopStatusIndicators() {
lv_obj_t *batteryFill = lv_obj_create(gRoot);
int fillWidth = max(2, min(26, (batt * 26) / 100));
lv_obj_set_size(batteryFill, fillWidth, 10);
lv_obj_set_pos(batteryFill, 341, 23);
lv_obj_set_pos(batteryFill, 352, 23);
lv_obj_set_style_radius(batteryFill, 2, 0);
lv_obj_set_style_bg_color(batteryFill, lv_color_hex(0x38B26D), 0);
lv_obj_set_style_border_width(batteryFill, 0, 0);
}
int level = wifiSignalLevel();
int baseX = 388;
int baseX = 399;
int baseY = 34;
for (int i = 0; i < 4; ++i) {
lv_obj_t *bar = lv_obj_create(gRoot);