From 79c35c2bc4b3690a4b5bed78ab23f5dbfd2a462b Mon Sep 17 00:00:00 2001 From: neris Date: Tue, 12 Sep 2023 20:09:35 +0300 Subject: [PATCH] Casio Logo Widget added. --- apps/widcasiologo/ChangeLog | 1 + apps/widcasiologo/metadata.json | 13 +++++++++++++ apps/widcasiologo/widget.js | 18 ++++++++++++++++++ apps/widcasiologo/widget.png | Bin 0 -> 1006 bytes 4 files changed, 32 insertions(+) create mode 100644 apps/widcasiologo/ChangeLog create mode 100644 apps/widcasiologo/metadata.json create mode 100644 apps/widcasiologo/widget.js create mode 100644 apps/widcasiologo/widget.png 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 0000000000000000000000000000000000000000..a285539beba54e24eb95413e866817fd0ca47b92 GIT binary patch literal 1006 zcmV~r4kQHG_E=(z5a4ep?xHw#|)8)du7~-8D zoW*l^zW!&+Y6BYYAh`+L9JE`I=;NTU~zGgw_96V;qiFN ze0Fztae8{n+g`61jg5_h`Bqj|kW3~qFfah8(^-~(etsSe4Gn^EZ*Omyo0}`!BLEZ# z1c>7}A|m2Aj#!qZLZLtHdf|WAwY<|y}dGfZEcO;kH_OE7K_;2+=R#D!RqQNMn*;u3WeZsIAFC} z%l@4b{r&x580K%v|B;F*q*kk;(P(&EtJNYBi6EQJA{Y!puh+wFw*vrNE*BDs1fHIr zFflO!0O;xIfzfEh>+37rZa3Q7+o92D_%$^(1pu(y?Fa^gUp7`-TMMmL%i9`_MsUDX zd;zD^iH(g793LM80EUK!;BYtq0M*siSXfx#@8I?IH7+kN0RSy6E$Hs5fNQoT~S+G8$S)KRx8C~F(M*5I5?or&Q3}s5?|(HSypfg z*=#mSrBYwU<#IV<7>2Ja!!M7yrluyy<-)&3p-{lX!vpksJ?iW0k9-|_tX471q`l}aUiYDBoby@gh*g-)mA^8-I8VpUa@VBE*Y2k!3fc)Lu%cjVhY zB_si2BMA^2Nr2c$0>nlVAU2W!v5^FbjU+&9BmrV02@o4efY?X^#6}VzHgW*}irs{S cgv9@tAGbsVYv7KKJOBUy07*qoM6N<$f*ZHGy#N3J literal 0 HcmV?d00001