Minor changes
parent
7f954b7e1b
commit
a476be9786
|
|
@ -24,6 +24,4 @@ Shows the watchface in fullscreen mode.
|
||||||
Note: In fullscreen mode, widgets are hidden, but still loaded.
|
Note: In fullscreen mode, widgets are hidden, but still loaded.
|
||||||
|
|
||||||
### Show lock status
|
### Show lock status
|
||||||
In fullscreen mode it can be useful to detect, whether the BangleJs is locked or not.
|
If enabled, color changes when unlocked to detect the lock state easily.
|
||||||
If these settings are enabled, the first digit is shown red if the BangleJs is locked
|
|
||||||
and purple otherwise.
|
|
||||||
|
|
@ -45,8 +45,6 @@ const colors = {
|
||||||
["#00FF00", "#00FFFF"]
|
["#00FF00", "#00FFFF"]
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
const unlockColor = "#FF0000";
|
|
||||||
|
|
||||||
const is12hour = (require("Storage").readJSON("setting.json",1)||{})["12hour"]||false;
|
const is12hour = (require("Storage").readJSON("setting.json",1)||{})["12hour"]||false;
|
||||||
const screenWidth = g.getWidth();
|
const screenWidth = g.getWidth();
|
||||||
const screenHeight = g.getHeight();
|
const screenHeight = g.getHeight();
|
||||||
|
|
@ -84,14 +82,12 @@ function drawClock(num){
|
||||||
const current = ((y + 1) * 2 + x - 1);
|
const current = ((y + 1) * 2 + x - 1);
|
||||||
let newScale = scale;
|
let newScale = scale;
|
||||||
|
|
||||||
let c = colors[settings.io ? 'io' : 'x'][y][x];
|
let xc = settings.showLock && Bangle.isLocked() ? Math.abs(x-1) : x;
|
||||||
if(x == 0 && y == 0 && settings.showLock){
|
let c = colors[settings.io ? 'io' : 'x'][y][xc];
|
||||||
c = Bangle.isLocked() ? c : unlockColor;
|
|
||||||
}
|
|
||||||
g.setColor(c);
|
g.setColor(c);
|
||||||
|
|
||||||
if (!settings.io) {
|
if (!settings.io) {
|
||||||
newScale *= settings.fullscreen ? 1.18 : 1.0;
|
newScale *= settings.fullscreen ? 1.20 : 1.0;
|
||||||
let dx = settings.fullscreen ? 0 : 18
|
let dx = settings.fullscreen ? 0 : 18
|
||||||
tx = (x * 100 + dx) * newScale;
|
tx = (x * 100 + dx) * newScale;
|
||||||
ty = (y * 100 + dx*2) * newScale;
|
ty = (y * 100 + dx*2) * newScale;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue