From b911084d48d4bdc95fe1becc7620ab7894d8200a Mon Sep 17 00:00:00 2001 From: Perry Nguyen Date: Thu, 15 Oct 2020 15:38:42 -0700 Subject: [PATCH] make the alt timezone blank if empty, `.` is ugly --- source/DataArea.mc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/source/DataArea.mc b/source/DataArea.mc index 6878995d..dd41eef5 100644 --- a/source/DataArea.mc +++ b/source/DataArea.mc @@ -120,7 +120,7 @@ class DataArea extends Ui.Drawable { time = time[:hour] + ":" + time[:min] + time[:amPm]; shouldDrawGoalValues = false; } else { - time = "."; + time = ""; } } @@ -129,14 +129,16 @@ class DataArea extends Ui.Drawable { time = "..."; } - dc.setColor(gMonoLightColour, Gfx.COLOR_TRANSPARENT); - dc.drawText( - locX + (width / 2), - mRow2Y, - gNormalFont, - time, - Graphics.TEXT_JUSTIFY_CENTER | Graphics.TEXT_JUSTIFY_VCENTER - ); + if (time.length() > 0) { + dc.setColor(gMonoLightColour, Gfx.COLOR_TRANSPARENT); + dc.drawText( + locX + (width / 2), + mRow2Y, + gNormalFont, + time, + Graphics.TEXT_JUSTIFY_CENTER | Graphics.TEXT_JUSTIFY_VCENTER + ); + } }