Casio Logo Widget added.

pull/3013/head
neris 2023-09-12 20:09:35 +03:00
parent 0b96c2f063
commit 79c35c2bc4
4 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1 @@
0.01: New App!

View File

@ -0,0 +1,13 @@
{
"id": "widcasiologo",
"name": "Casio Logo Widget",
"version": "0.01",
"description": "A simple widget that displays Casio logo when clock screen is active.",
"icon": "widget.png",
"type": "widget",
"tags": "widget,clock",
"supports": ["BANGLEJS2"],
"storage": [
{"name":"widcasiologo.wid.js","url":"widget.js"}
]
}

View File

@ -0,0 +1,18 @@
WIDGETS["casiologo"]={
area:"tl",
width: Bangle.CLOCK?70:0,
draw: function () {
if (!Bangle.CLOCK != !this.width) { // if we're the wrong size for if we have a clock or not...
this.width = Bangle.CLOCK?70:0;
return setTimeout(Bangle.drawWidgets,1); // widget changed size - redraw
}
if (!this.width) return;
g.reset()
.setColor(255, 255, 255)
.drawImage(
atob("OgwCAAAAAAAAAAAAAAAAAAAA///wA//AD//8D8D///A////AP/wD///w/D///8P9B/wL//A/AD8Pw/wC/D8AD8D8PwPwAAD8PwAPw/AAAA/D8D///A/D8AD8PwAAA/gPwP//8Pw/AA/D8AD8P//8AAA/T8PwAPw/wD/P///z8AP0/D/Af8P///z/AL8///8Pw////A///w/AA/T///D8D///AAAAAAAAAAAAAAAAAAAA"),
this.x+10,
this.y+6)
}
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B