diff --git a/apps/widcasiologo/ChangeLog b/apps/widcasiologo/ChangeLog new file mode 100644 index 0000000000..2286a7f70e --- /dev/null +++ b/apps/widcasiologo/ChangeLog @@ -0,0 +1 @@ +0.01: New App! \ No newline at end of file diff --git a/apps/widcasiologo/metadata.json b/apps/widcasiologo/metadata.json new file mode 100644 index 0000000000..67462a0fa4 --- /dev/null +++ b/apps/widcasiologo/metadata.json @@ -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"} + ] +} diff --git a/apps/widcasiologo/widget.js b/apps/widcasiologo/widget.js new file mode 100644 index 0000000000..b86a092dda --- /dev/null +++ b/apps/widcasiologo/widget.js @@ -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) + } + }; diff --git a/apps/widcasiologo/widget.png b/apps/widcasiologo/widget.png new file mode 100644 index 0000000000..a285539beb Binary files /dev/null and b/apps/widcasiologo/widget.png differ