Edit the-saloon.yaml

This commit is contained in:
ESPHome Device Builder 2026-10-22 12:27:18 +02:00
parent c79bdd8ca1
commit 9bda7796df

View File

@ -79,7 +79,7 @@ display:
int x = 10, y = 135, w = 300, h = 22;
Color c = pct > 90 ? Color(255, 0, 0) : (pct > 75 ? Color(255, 165, 0) : Color(0, 200, 0));
it.filled_rectangle(x + 2, y + 2, (int)((w - 4) * pct / 100.0f), h - 4, c);
it.printf(10, 105, id(roboto), TextAlign::TOP_RIGHT, "%.0f%%", pct);
it.printf(10, 105, id(roboto), "%.0f%%", pct);
}
font: