v1.12: restore reset-time labels, bolder pace tick

Fix v1.11 regression where the pace tag overwrote the reset-time label
(gone entirely on the small widget). The widget reset lines now show the
actual reset time again; pace is conveyed by the bar tick.

Make the pace tick more prominent: wider core + white halo so it stands
out against any fill color.

versionCode 13 / versionName 1.12. Includes rebuilt signed release APK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 02:42:45 +00:00
parent 4f9edd5e63
commit d6d7daa30f
4 changed files with 16 additions and 20 deletions
@@ -42,14 +42,20 @@ object BarRenderer {
canvas.drawRoundRect(fill, cornerPx, cornerPx, paint)
}
// Pace tick — "where you should be right now"
// Pace tick — "where you should be right now".
// Wider than before and wrapped in a white halo so it stands out on any fill color.
if (markerPct != null && tierColor != null) {
val m = markerPct.coerceIn(0, 100)
val tickW = (wPx * 0.012f).coerceIn(3f, 7f)
val coreW = (wPx * 0.022f).coerceIn(9f, 14f) // tier-colored core
val halo = coreW * 0.6f // white outline on each side
var x = wPx * m / 100f
x = x.coerceIn(tickW / 2f, wPx - tickW / 2f)
x = x.coerceIn(coreW / 2f + halo, wPx - coreW / 2f - halo)
// white halo
paint.color = 0xFFFFFFFF.toInt()
canvas.drawRect(x - coreW / 2f - halo, 0f, x + coreW / 2f + halo, hPx.toFloat(), paint)
// tier-colored core
paint.color = tierColor
canvas.drawRect(x - tickW / 2f, 0f, x + tickW / 2f, hPx.toFloat(), paint)
canvas.drawRect(x - coreW / 2f, 0f, x + coreW / 2f, hPx.toFloat(), paint)
}
return bmp