placeholder text for input field

This commit is contained in:
2026-08-16 10:47:08 +02:00
parent df8330d1e3
commit 9c634b819e

View File

@@ -1349,15 +1349,20 @@ void runSearch(TFT_eSPI& tft, int16_t top) {
auto redraw = [&]() { auto redraw = [&]() {
tft.fillScreen(TFT_BLACK); tft.fillScreen(TFT_BLACK);
tft.setTextColor(TFT_GREEN, TFT_BLACK); tft.setTextColor(TFT_GREEN, TFT_BLACK);
tft.setCursor(10, 14); tft.fillRect(8, 30, Config::SCREEN_WIDTH - 16, 28, TFT_BLACK);
//tft.print("Search");
tft.fillRect(8, 30, Config::SCREEN_WIDTH - 16, 28, TFT_BLACK);
tft.drawRect(8, 30, Config::SCREEN_WIDTH - 16, 28, TFT_GREEN); tft.drawRect(8, 30, Config::SCREEN_WIDTH - 16, 28, TFT_GREEN);
tft.setTextSize(2); tft.setTextSize(2);
tft.setTextColor(TFT_GREEN, TFT_BLACK);
tft.setCursor(14, 52); tft.setCursor(14, 52);
if (buf[0] == 0) {
tft.setTextColor(TFT_DARKGREY, TFT_BLACK);
tft.setTextSize(1);
tft.setCursor(14, 49);
tft.print("Flight number or hex code");
tft.setTextSize(2);
} else {
tft.setTextColor(TFT_GREEN, TFT_BLACK);
tft.print(buf); tft.print(buf);
}
tft.setTextSize(1); tft.setTextSize(1);
if (showingNotFound) { if (showingNotFound) {