forked from espruino/BangleApps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsphclock.lock.js
More file actions
71 lines (64 loc) · 1.41 KB
/
Copy pathsphclock.lock.js
File metadata and controls
71 lines (64 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
exports.drawLocked1 = function () {
let x = 128;
let y = 5;
if (Bangle.isLocked()) {
g.setFontLECO1976Regular14();
g.setFontAlign(0, -1);
g.setColor("#000");
g.drawString("LOCKED", x, y);
g.drawLine(102, 17, 152, 17);
g.drawLine(102, 19, 152, 19);
} else {
g.setColor("#FFF");
g.fillRect(x - 26, y, x + 26, y + 14);
}
};
exports.drawLocked2 = function () {
let x = 0;
let y = 0;
if (Bangle.isLocked()) {
g.setFontAlign(0, -1);
g.setColor("#000");
g.fillPoly(
[
(x = 60),
(y = 49),
(x -= 5),
(y += 7),
(x += 5),
(y += 7),
(x += 56),
y,
(x += 5),
(y -= 7),
(x -= 5),
(y -= 7),
],
true
);
g.drawLine((x -= 54), (y -= 2), (x += 52), y);
// g.setFont("Vector",10);
g.setColor("#FFF");
g.drawString("LOCKED", 88, 51);
} else {
g.setColor("#FFF");
g.fillRect(50, 47, 120, 52);
}
};
exports.drawLocked = function () {
if (Bangle.isLocked()) {
g.setColor("#000");
g.fillCircle(166, 88, 10);
g.setColor("#000");
g.fillRect(166, 78, 176, 98);
g.drawLine(166, 76, 176, 76);
g.drawLine(166, 100, 176, 100);
g.setColor("#FFF");
g.drawCircle(167, 87, 4);
g.fillRect(163, 87, 171, 89);
g.setColor("#AAA");
g.fillRect(163, 90, 171, 93);
g.setColor("#000");
g.fillRect(166, 89, 167, 92);
}
};