Skip to content

Commit

Permalink
Casio Logo Widget added.
Browse files Browse the repository at this point in the history
  • Loading branch information
neris committed Sep 12, 2023
1 parent 0b96c2f commit 79c35c2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/widcasiologo/ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.01: New App!
13 changes: 13 additions & 0 deletions apps/widcasiologo/metadata.json
Original file line number Diff line number Diff line change
@@ -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"}
]
}
18 changes: 18 additions & 0 deletions apps/widcasiologo/widget.js
Original file line number Diff line number Diff line change
@@ -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 added apps/widcasiologo/widget.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 79c35c2

Please sign in to comment.