Copy offset and font size changes from wclock to handle Bangle.js 2
parent
b8f5f973c5
commit
6c61c17d2b
|
|
@ -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 */;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue