Copy offset and font size changes from wclock to handle Bangle.js 2

master
Amos Blanton 2021-12-11 11:14:45 +01:00 committed by GitHub
parent b8f5f973c5
commit 6c61c17d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -34,14 +34,16 @@ const timeOfDay = {
}; };
// offsets and increments var big = g.getWidth()>200;
const xs = 35; // offsets and incerments
const ys = 31; const xs = big ? 35 : 20;
const dy = 22; const ys = big ? 31 : 28;
const dx = 25; const dx = big ? 25 : 20;
const dy = big ? 22 : 16;
// font size and color // font size and color
const fontSize = 3; // "6x8" const fontSize = big ? 3 : 2; // "6x8"
const passivColor = 0x3186 /*grey*/ ; const passivColor = 0x3186 /*grey*/ ;
const activeColorNight = 0xF800 /*red*/ ; const activeColorNight = 0xF800 /*red*/ ;
const activeColorDay = 0xFFFF /* white */; const activeColorDay = 0xFFFF /* white */;