From 26e12e5d5636cc1eb033ce23f395914c180a77e7 Mon Sep 17 00:00:00 2001 From: Thomas Ballmann Date: Sat, 26 Dec 2020 10:42:02 +0100 Subject: [PATCH] face today - border added --- lib/face/faceToday.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/face/faceToday.cpp b/lib/face/faceToday.cpp index 07fd021..a4b8668 100644 --- a/lib/face/faceToday.cpp +++ b/lib/face/faceToday.cpp @@ -62,7 +62,7 @@ void addTodayDay() int16_t time_base_y = 50; int16_t time_base_x = 15; canvas->getTextBounds("00", time_base_x, time_base_y, &x1, &y1, &w, &h); - // canvas->fillRect(0, 0, x1 + w + 25, time_base_y + (h *2) + 5, COLOR_FG); + canvas->fillRoundRect(-14, -14, x1 + w + 25 + 15, time_base_y + (h * 2) + 5 + 15, 15, COLOR_BG); // add border canvas->fillRoundRect(-15, -15, x1 + w + 25 + 15, time_base_y + (h * 2) + 5 + 15, 15, COLOR_FG); // 1. row - day @@ -90,6 +90,7 @@ void addTodayWeather() int16_t y = displayGetHeight() - 60; // add tile + canvas->fillRoundRect(x -1, y -1, 150 + 15, 60 + 15, 15, COLOR_BG); // add border canvas->fillRoundRect(x, y, 150 + 15, 60 + 15, 15, COLOR_FG); // current weather condition - icon @@ -108,7 +109,6 @@ void addTodayWeather() int16_t textbox_x = x + 64 + 5; int16_t textbox_y = y + 72; canvas->getTextBounds("000", textbox_x, textbox_y, &x1, &y1, &w, &h); - Serial.printf("x:%d, y:%d", x1, y1); canvas->setCursor(x1, y1); canvas->print(weatherData.current_temp);