1
0
Fork 0

barclock: fix Vector font size on Bangle.js 2

master
Richard de Boer 2022-05-31 00:19:29 +02:00
parent 65d59242d5
commit fa6943ef18
No known key found for this signature in database
GPG Key ID: 8721727971871937
1 changed files with 4 additions and 3 deletions

View File

@ -78,11 +78,12 @@ const ClockFace = require("ClockFace"),
} }
this.layout.bar.height = thickness+1; this.layout.bar.height = thickness+1;
if (this.font===1) { // vector if (this.font===1) { // vector
const B2 = process.env.HWVERSION>1;
if (this.is12Hour && locale.hasMeridian) { if (this.is12Hour && locale.hasMeridian) {
this.layout.time.font = "Vector:60"; this.layout.time.font = "Vector:"+(B2 ? 50 : 60);
this.layout.ampm.font = "Vector:40"; this.layout.ampm.font = "Vector:"+(B2 ? 20 : 40);
} else { } else {
this.layout.time.font = "Vector:80"; this.layout.time.font = "Vector:"+(B2 ? 60 : 80);
} }
} else { } else {
this.layout.time.font = "6x8:"+thickness; this.layout.time.font = "6x8:"+thickness;