From 20151cc6093f2a49321f94f499025466d8f84198 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Thu, 14 May 2026 17:34:57 +0200 Subject: [PATCH] fix: align status bar icons to y=0, reduce battery icon to 8px height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BT indicator and mute icon were at y=1 (1px below text baseline). Battery icon height reduced 10→8px to match text height. Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/UITask.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index ef5f6b45..6fc39d72 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -1713,7 +1713,7 @@ class HomeScreen : public UIScreen { display.setCursor(battLeftX, 0); display.print(buf); } else { // icon - const int iconWidth = 24, iconHeight = 10; + const int iconWidth = 24, iconHeight = 8; battLeftX = display.width() - iconWidth - 5; display.drawRect(battLeftX, 0, iconWidth, iconHeight); display.fillRect(battLeftX + iconWidth, iconHeight / 4, 3, iconHeight / 2); @@ -1724,7 +1724,7 @@ class HomeScreen : public UIScreen { #ifdef PIN_BUZZER if (_task->isBuzzerQuiet()) { display.setColor(DisplayDriver::LIGHT); - display.drawXbm(battLeftX - 9, 1, muted_icon, 8, 8); + display.drawXbm(battLeftX - 9, 0, muted_icon, 8, 8); } #endif @@ -1739,12 +1739,12 @@ class HomeScreen : public UIScreen { display.setColor(DisplayDriver::LIGHT); display.fillRect(btX - 1, 0, 8, 9); display.setColor(DisplayDriver::DARK); - display.setCursor(btX, 1); + display.setCursor(btX, 0); display.print("B"); display.setColor(DisplayDriver::LIGHT); } else { display.setColor(DisplayDriver::LIGHT); - display.setCursor(btX, 1); + display.setCursor(btX, 0); display.print("b"); } }