From 103f8000f39d94da61dccaa8a0414593cfd6f563 Mon Sep 17 00:00:00 2001 From: cottongin Date: Mon, 3 Aug 2026 21:06:48 -0400 Subject: [PATCH] fix: improve icon vertical alignment and increase icon-text gap Shift icons up 1px to better match the text midline, and increase ICON_GAP from 4 to 6 for more breathing room between icon and text. Co-authored-by: Cursor --- src/display_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display_manager.cpp b/src/display_manager.cpp index fcd68f4..288c097 100644 --- a/src/display_manager.cpp +++ b/src/display_manager.cpp @@ -186,7 +186,7 @@ void DisplayManager::showMetadataInRegion(const AssetInfo& info, uint8_t metaFla static constexpr uint16_t PAD_Y = 5; static constexpr uint16_t TEXT_H = 20; static constexpr uint16_t ICON_SIZE = 12; - static constexpr uint16_t ICON_GAP = 4; + static constexpr uint16_t ICON_GAP = 6; bool showIcons = (regionW == DISPLAY_WIDTH); @@ -247,7 +247,7 @@ void DisplayManager::showMetadataInRegion(const AssetInfo& info, uint8_t metaFla _display->setTextDatum(middle_left); uint16_t textX = bx + PAD_X; if (showIcons) { - drawCalendarIcon(bx + PAD_X, by + (badgeH - ICON_SIZE) / 2, ICON_SIZE); + drawCalendarIcon(bx + PAD_X, by + (badgeH - ICON_SIZE) / 2 - 1, ICON_SIZE); textX += ICON_SIZE + ICON_GAP; } _display->drawString(metaText.c_str(), textX, by + badgeH / 2); @@ -277,7 +277,7 @@ void DisplayManager::showMetadataInRegion(const AssetInfo& info, uint8_t metaFla _display->setTextDatum(middle_left); uint16_t locTextX = lx + PAD_X; if (showIcons) { - drawPinIcon(lx + PAD_X, ly + (locBadgeH - ICON_SIZE) / 2, ICON_SIZE); + drawPinIcon(lx + PAD_X, ly + (locBadgeH - ICON_SIZE) / 2 - 1, ICON_SIZE); locTextX += ICON_SIZE + ICON_GAP; } _display->drawString(locationText.c_str(), locTextX, ly + locBadgeH / 2);