From 295ded5c11186179b2fcd7877e1fc47bc57ddda9 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Mon, 20 May 2019 14:34:17 -0400 Subject: Use leading 0 in time; darken if 12-hr format --- app/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/index.js b/app/index.js index 50e4f36..c066693 100644 --- a/app/index.js +++ b/app/index.js @@ -104,10 +104,14 @@ function applyTheme(background, foreground) { } function setHours(val) { + hours1.style.opacity = 1; if (val > 9) { drawNumeral(Math.floor(val / 10), hours1); } else { - drawNumeral("", hours1); + drawNumeral(0, hours1); + if (preferences.clockDisplay === "12h") { + hours1.style.opacity = 0.2; + } } drawNumeral(Math.floor(val % 10), hours2); } -- cgit v1.2.3