-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpatch.diff
More file actions
39 lines (35 loc) · 1.53 KB
/
Copy pathpatch.diff
File metadata and controls
39 lines (35 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff --git a/main.cpp b/main.cpp
--- a/main.cpp
+++ b/main.cpp
@@ -2819,7 +2819,7 @@
void drawDateLine(const String &dateText) {
const int screenW = 480;
const int timeY = 130; // Taka sama jak w drawHamClock
- const int dateY = timeY + 105; // Taka sama jak w drawHamClock
+ const int dateY = timeY + 84; // Taka sama jak w drawHamClock
// Czyść obszar daty (szeroki prostokąt na całej szerokości)
tft.fillRect(30, dateY - 2, 420, 24, TFT_BLACK);
@@ -3145,7 +3145,7 @@
int labelWidth = tft.textWidth(timeLabel);
int labelX = (screenW - labelWidth) / 2;
tft.setTextColor(TFT_LIGHTGREY);
- tft.setCursor(labelX, timeY + 90);
+ tft.setCursor(labelX, timeY + 66);
tft.print(timeLabel);
// 5. DATA - Dokładnie wyśrodkowana
@@ -3161,7 +3161,7 @@
}
// Data - używamy fontu VLW jeśli dostępny, inaczej standardowy
- int dateY = timeY + 105; // Pozycja Y daty - używana też w imieninach
+ int dateY = timeY + 84; // Pozycja Y daty - używana też w imieninach
if (littleFsReady && LittleFS.exists(ROBOTO_FONT20_FILE)) {
tft.loadFont(ROBOTO_FONT20_NAME, LittleFS);
tft.setTextColor(TFT_WHITE);
@@ -3183,7 +3183,7 @@
if (tftLanguage != TFT_LANG_EN) {
String nameDayText = getPolishNameDay();
if (nameDayText.length() > 0) {
- int nameDayY = dateY + 35; // Pozycja pod datą
+ int nameDayY = dateY + 30; // Pozycja pod datą
// Używamy fontu VLW jeśli dostępny (obsługuje polskie znaki)
if (littleFsReady && LittleFS.exists(ROBOTO_FONT12_FILE)) {