From 94cb9de981363e841a2c6fbbf3feb8173d05a752 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Mon, 13 Jun 2022 17:59:16 +0200 Subject: [PATCH] Changed text, added 3 dots, roundRect --- src/changevaluedisplay_ip_address_t.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/changevaluedisplay_ip_address_t.cpp b/src/changevaluedisplay_ip_address_t.cpp index 9e10b64..32c9264 100644 --- a/src/changevaluedisplay_ip_address_t.cpp +++ b/src/changevaluedisplay_ip_address_t.cpp @@ -19,7 +19,7 @@ void ChangeValueDisplay::initScreen() Base::initScreen(); tft.setTextColor(TFT_WHITE); - tft.drawString("Change IP", 0, 50); + tft.drawString("Change IP Address", 0, 50); for(int i = 0; i <= 3; i++) { @@ -30,6 +30,10 @@ void ChangeValueDisplay::initScreen() for (auto &label : m_labels) label.start(); + tft.drawString(".", spacing+boxWidth+spacing/4, y); + tft.drawString(".", spacing*2+boxWidth*2+spacing/4, y); + tft.drawString(".", spacing*3+boxWidth*3+spacing/4, y); + drawRect(m_currentIndex, 1, TFT_YELLOW); drawRect(m_currentIndex, 2, TFT_YELLOW); @@ -108,7 +112,7 @@ void ChangeValueDisplay::buttonReleased(Button button) void ChangeValueDisplay::drawRect(int index, int offset, uint32_t color) const { - tft.drawRect(m_labels[index].x()-offset, m_labels[index].y()-offset, boxWidth+(offset*2), boxHeight+(offset*2), color); + tft.drawRoundRect(m_labels[index].x()-offset, m_labels[index].y()-offset, boxWidth+(offset*2), boxHeight+(offset*2), 3, color); } } // namespace espgui