feat(ui): actualizar iconos de encabezado en pantalla completa
- Termometro en alta resolucion 48x48 (icon_temp_48) con alpha blending - Bateria vectorial HD 48x48 (icon_battery_48) con carcasa automotriz y rayo verde neon - RPM centrado en cabecera reutilizando directamente el icono exacto de 4 cuadrantes (icon_rpm_quad) - Eliminacion de arrays redundantes ahorrando 6.9 KB de memoria Flash
This commit is contained in:
parent
1181dea1d9
commit
2c29a58de5
2 changed files with 545 additions and 646 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -178,18 +178,18 @@ void clearPidIcon(int x, int y, const String &pidStr) {
|
|||
// Draw header icon for full screen mode with true alpha channel
|
||||
void drawPidIconHeader(int x, int y, const String &pidStr) {
|
||||
if (pidStr == "0105") {
|
||||
drawIconWithAlpha(x, y, 42, 42, icon_temp_42, icon_temp_42_alpha, false);
|
||||
drawIconWithAlpha(8, 2, 48, 48, icon_temp_48, icon_temp_48_alpha, false);
|
||||
} else if (pidStr == "010D") {
|
||||
drawIconWithAlpha(8, 2, 48, 48, icon_speed_48, icon_speed_48_alpha, false);
|
||||
} else if (pidStr == "010C") {
|
||||
drawIconWithAlpha(x, y, 42, 42, icon_rpm_42, icon_rpm_42_alpha, false);
|
||||
drawIconWithAlpha(11, 4, 42, 43, icon_rpm_quad, icon_rpm_quad_alpha, false);
|
||||
} else if (pidStr == "0142" || pidStr == "ATRV") {
|
||||
drawIconWithAlpha(x, y, 42, 42, icon_battery_42, icon_battery_42_alpha, false);
|
||||
drawIconWithAlpha(8, 2, 48, 48, icon_battery_48, icon_battery_48_alpha, false);
|
||||
}
|
||||
}
|
||||
|
||||
// Restore ambient vignette background over the header icon area during alarm blink OFF phase (100% invisible)
|
||||
void clearPidIconHeader(int x = 8, int y = 2, int w = 50, int h = 48) {
|
||||
void clearPidIconHeader(int x = 8, int y = 2, int w = 50, int h = 52) {
|
||||
for (int j = 0; j < h; j++) {
|
||||
int curY = y + j;
|
||||
uint16_t bgCol = getInstrumentBgColor(curY, false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue