1
0
Fork 0

Merge pull request #3013 from VitaliiTsilnyk/widcasiologo

Casio Logo Widget
master
Gordon Williams 2023-09-13 08:35:53 +01:00 committed by GitHub
commit c031d812d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 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,17 @@
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()
.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