diff --git a/SPECS.md b/SPECS.md index cbf0844..7d37964 100644 --- a/SPECS.md +++ b/SPECS.md @@ -140,6 +140,7 @@ tyre pressures, GPS (lat, lon, elevation, heading) and the is_* flags. It does * confirmed car facts, app structure, UI conventions, build/test/ship, documents. It replaces upstream's EVABRPUploader text. The test emulator is now in the flake: `nix run .#car-emulator` (Android 9 AOSP at 1920×720, 160 dpi; the car build installs as the system user — checked). +- 2026-10-31 — App 2.43.1: Halloween's bats can be seen. They were near-black and small on the darkest part of the sky, and the owner did not spot them; now a moonlit purple-grey with a light edge, a third larger. Two screenshots redone. Tested: unit tests, lint, emulator with sample values (panel and full screen) and with no data (no bats). Not tried on the car. - 2026-10-31 — App 2.43.0 published (`car-2.43.0`). - 2026-10-31 — App 2.43.0: Overview styles **Día de Muertos** (`MuertosView`) and **Halloween** (`HalloweenView`; owner: "let's design a 'dia de muertos' and a 'halloween' style"), each with diff --git a/app/build.gradle b/app/build.gradle index 16c24e7..937ede9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -34,8 +34,8 @@ android { applicationId "com.stinnesbeck.nilsmg4" minSdk 27 targetSdk 36 - versionCode 153 - versionName "2.43.0" + versionCode 154 + versionName "2.43.1" // Nothing about the server ships in the APK: its URL and ingest token are entered in // the app's Server tab (ServerConfig), and the database is only reachable by the server. diff --git a/app/src/main/java/com/evsuite/abrp/HalloweenView.java b/app/src/main/java/com/evsuite/abrp/HalloweenView.java index 72c104b..b49c67d 100644 --- a/app/src/main/java/com/evsuite/abrp/HalloweenView.java +++ b/app/src/main/java/com/evsuite/abrp/HalloweenView.java @@ -39,6 +39,7 @@ final class HalloweenView extends ClusterCanvasView { private static final int STONE_DARK = 0xFF3E3C4A, MOON = 0xFFF4E9B8, MOON_SHADE = 0xFFD8C98C; private static final int POTION = 0xFF7BF03A, GLASS = 0xFFB9D8D0, BONE = 0xFFF2EAD8, ORANGE = 0xFFFF8C1A; private static final int STEM = 0xFF4E7A2B, WOOD = 0xFF2E1B10, INK = 0xFF140A08; + private static final int BAT = 0xFF6F6390, BAT_EDGE = 0xFFD6CCEA; private final Paint fill = new Paint(Paint.ANTI_ALIAS_FLAG); private final Paint line = new Paint(Paint.ANTI_ALIAS_FLAG); @@ -180,11 +181,11 @@ final class HalloweenView extends ClusterCanvasView { float x = ((i * 0.13f * span + time * speed) % span) + w * 0.04f; float y = lane + (float) Math.sin(time * 2f + i) * 8f * u; if (Math.abs(x - cx) < 60f * u) y -= 10f * u; - bat(c, x, y, (i % 2 == 0 ? 15f : 12f) * u, (float) Math.sin(time * 14f + i * 2f)); + bat(c, x, y, (i % 2 == 0 ? 20f : 16f) * u, (float) Math.sin(time * 14f + i * 2f), u); } } - private void bat(Canvas c, float x, float y, float s, float flap) { + private void bat(Canvas c, float x, float y, float s, float flap, float u) { float tip = -s * 0.5f * flap; path.reset(); path.moveTo(x, y - s * 0.3f); @@ -197,8 +198,12 @@ final class HalloweenView extends ClusterCanvasView { path.quadTo(x - s * 1.1f, y + s * 0.05f, x - s * 1.5f, y - s * 0.3f + tip); path.quadTo(x - s * 0.6f, y - s * 0.7f + tip, x, y - s * 0.3f); path.close(); - fill.setColor(0xFF06030C); + // Lit by the moon: black would vanish in the night sky. + fill.setColor(BAT); c.drawPath(path, fill); + line.setColor(BAT_EDGE); + line.setStrokeWidth(1.5f * u); + c.drawPath(path, line); } // ---------- Ghost: only where there is room ---------- diff --git a/screenshots/themes/halloween-panel.png b/screenshots/themes/halloween-panel.png index 35fd04e..3fa386e 100644 Binary files a/screenshots/themes/halloween-panel.png and b/screenshots/themes/halloween-panel.png differ diff --git a/screenshots/themes/halloween.png b/screenshots/themes/halloween.png index 79c6b8b..de4e848 100644 Binary files a/screenshots/themes/halloween.png and b/screenshots/themes/halloween.png differ