binaryblk: changed month to day and text color to black
parent
310ecc318f
commit
943d8b49e6
|
|
@ -5,3 +5,4 @@
|
|||
0.05: Minor code improvements
|
||||
0.06: Added setting to show battery and added artwork to date
|
||||
0.07: Removed percentage from battery and cleaned up logic
|
||||
0.08: Changed month to day and text color to black on date
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ function draw() {
|
|||
var h = dt.getHours();
|
||||
var m = dt.getMinutes();
|
||||
var d = dt.getDate();
|
||||
var mon = dt.toString().substring(4,7);
|
||||
var day = dt.toString().substring(0,3);
|
||||
const t = [];
|
||||
|
||||
t[0] = Math.floor(h/10);
|
||||
|
|
@ -65,10 +65,10 @@ function draw() {
|
|||
g.setColor('#FF0000').fillRect(Math.floor(mgn/2) + gap, mgn + gap, Math.floor(mgn/2) + gap + sq, mgn + gap + 12);
|
||||
g.setFontAlign(0, -1);
|
||||
g.setFont("Vector",12);
|
||||
g.setColor(-1).drawString(mon, Math.ceil(mgn/2) + gap + Math.ceil(sq/2) + 1, mgn + gap + 1);
|
||||
g.setColor(1).drawString(day, Math.ceil(mgn/2) + gap + Math.ceil(sq/2) + 1, mgn + gap + 1);
|
||||
g.setFontAlign(0, 1);
|
||||
g.setFont("Vector",20);
|
||||
g.setColor(1).drawString(d, Math.ceil(mgn/2) + gap + Math.ceil(sq/2) + 1, mgn + gap + sq + 2);
|
||||
g.drawString(d, Math.ceil(mgn/2) + gap + Math.ceil(sq/2) + 1, mgn + gap + sq + 2);
|
||||
if (g.theme.dark) {
|
||||
g.setColor(-1);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"id": "binaryclk",
|
||||
"name": "Bin Clock",
|
||||
"version": "0.07",
|
||||
"description": "Clock face to show binary time in 24 hour format",
|
||||
"version": "0.08",
|
||||
"description": "Binary clock with date and battery",
|
||||
"icon": "app-icon.png",
|
||||
"screenshots": [{"url":"screenshot.png"}],
|
||||
"type": "clock",
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in New Issue