diff options
author | Daniel Smith <rdnlsmith@gmail.com> | 2019-05-20 14:34:17 -0400 |
---|---|---|
committer | Daniel Smith <rdnlsmith@gmail.com> | 2019-05-20 14:34:17 -0400 |
commit | 295ded5c11186179b2fcd7877e1fc47bc57ddda9 (patch) | |
tree | 8245c971b4f044be7728427f8778dd017a6e082c /app | |
parent | 826e974ab8391ce3d5b24ee1b3acf76f3448aae8 (diff) |
Use leading 0 in time; darken if 12-hr format
Diffstat (limited to 'app')
-rw-r--r-- | app/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |