aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Daniel Smith <rdnlsmith@gmail.com> 2019-05-20 14:34:17 -0400
committerGravatar Daniel Smith <rdnlsmith@gmail.com> 2019-05-20 14:34:17 -0400
commit295ded5c11186179b2fcd7877e1fc47bc57ddda9 (patch)
tree8245c971b4f044be7728427f8778dd017a6e082c
parent826e974ab8391ce3d5b24ee1b3acf76f3448aae8 (diff)
Use leading 0 in time; darken if 12-hr format
-rw-r--r--app/index.js6
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);
}