Skip to content

Commit

Permalink
make the alt timezone blank if empty, . is ugly
Browse files Browse the repository at this point in the history
  • Loading branch information
pfn committed Oct 15, 2020
1 parent acf5d0b commit b911084
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions source/DataArea.mc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class DataArea extends Ui.Drawable {
time = time[:hour] + ":" + time[:min] + time[:amPm];
shouldDrawGoalValues = false;
} else {
time = ".";
time = "";
}
}

Expand All @@ -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
);
}

}

Expand Down

0 comments on commit b911084

Please sign in to comment.