diff options
Diffstat (limited to 'source/ui/OtpView.mc')
| -rw-r--r-- | source/ui/OtpView.mc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ui/OtpView.mc b/source/ui/OtpView.mc index 1c0c0bd..d35e103 100644 --- a/source/ui/OtpView.mc +++ b/source/ui/OtpView.mc @@ -131,7 +131,7 @@ class OtpView extends WatchUi.View { dc.drawText(cx, y, smallFont, Ui.fit(dc, hint, smallFont, 2 * Ui.halfWidthAt(dc, y)), Graphics.TEXT_JUSTIFY_CENTER); y += smallH; } else { - dc.setColor(remaining <= NEXT_CODE_SECONDS ? Ui.WARN_COLOR : Ui.dim(), Graphics.COLOR_TRANSPARENT); + dc.setColor(remaining <= NEXT_CODE_SECONDS ? Ui.warn() : Ui.dim(), Graphics.COLOR_TRANSPARENT); dc.drawText(cx, y, infoFont, remaining + " s", Graphics.TEXT_JUSTIFY_CENTER); y += dc.getFontHeight(infoFont); if (remaining <= NEXT_CODE_SECONDS && cached != null) { @@ -232,7 +232,7 @@ class OtpView extends WatchUi.View { private function drawTimeLeft(dc as Graphics.Dc, remaining as Number, period as Number) as Void { var w = dc.getWidth(); var h = dc.getHeight(); - var color = remaining <= NEXT_CODE_SECONDS ? Ui.WARN_COLOR : Ui.accent(); + var color = remaining <= NEXT_CODE_SECONDS ? Ui.warn() : Ui.accent(); if (Ui.isRound()) { var r = w / 2 - RING_WIDTH / 2 - 1; dc.setPenWidth(RING_WIDTH); |
