fix alarm widget for b2, set widget size for widpedom with large text
parent
c0c61ccc15
commit
88f8138ecf
|
|
@ -202,7 +202,7 @@
|
||||||
"name": "Default Alarm",
|
"name": "Default Alarm",
|
||||||
"shortName":"Alarms",
|
"shortName":"Alarms",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version":"0.11",
|
"version":"0.12",
|
||||||
"description": "Set and respond to alarms",
|
"description": "Set and respond to alarms",
|
||||||
"tags": "tool,alarm,widget,b2",
|
"tags": "tool,alarm,widget,b2",
|
||||||
"storage": [
|
"storage": [
|
||||||
|
|
@ -1184,7 +1184,7 @@
|
||||||
{ "id": "widpedom",
|
{ "id": "widpedom",
|
||||||
"name": "Pedometer widget",
|
"name": "Pedometer widget",
|
||||||
"icon": "widget.png",
|
"icon": "widget.png",
|
||||||
"version":"0.17",
|
"version":"0.18",
|
||||||
"description": "Daily pedometer widget",
|
"description": "Daily pedometer widget",
|
||||||
"tags": "widget,b2",
|
"tags": "widget,b2",
|
||||||
"type":"widget",
|
"type":"widget",
|
||||||
|
|
|
||||||
|
|
@ -9,3 +9,4 @@
|
||||||
0.09: Add per alarm auto-snooze option
|
0.09: Add per alarm auto-snooze option
|
||||||
0.10: Fix auto-snooze option (this stopped new alarms being added) (fix #506)
|
0.10: Fix auto-snooze option (this stopped new alarms being added) (fix #506)
|
||||||
0.11: Respect Quiet Mode
|
0.11: Respect Quiet Mode
|
||||||
|
0.12: Fix widget for bangle 2, now uses theme
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
delete alarms;
|
delete alarms;
|
||||||
// add the widget
|
// add the widget
|
||||||
WIDGETS["alarm"]={area:"tl",width:24,draw:function() {
|
WIDGETS["alarm"]={area:"tl",width:24,draw:function() {
|
||||||
g.setColor(-1);
|
g.setColor(g.theme.fg);
|
||||||
g.drawImage(atob("GBgBAAAAAAAAABgADhhwDDwwGP8YGf+YMf+MM//MM//MA//AA//AA//AA//AA//AA//AB//gD//wD//wAAAAADwAABgAAAAAAAAA"),this.x,this.y);
|
g.drawImage(atob("GBgBAAAAAAAAABgADhhwDDwwGP8YGf+YMf+MM//MM//MA//AA//AA//AA//AA//AA//AB//gD//wD//wAAAAADwAABgAAAAAAAAA"),this.x,this.y);
|
||||||
}};
|
}};
|
||||||
})()
|
})()
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,4 @@
|
||||||
0.15: Settings option to hide the widget icon
|
0.15: Settings option to hide the widget icon
|
||||||
0.16: Settings option to show large digits in widget area
|
0.16: Settings option to show large digits in widget area
|
||||||
0.17: Cope with 2v10+ firmware sometimes reporting >1 step
|
0.17: Cope with 2v10+ firmware sometimes reporting >1 step
|
||||||
|
0.18: Adjust widget width when displaying large text
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,9 @@
|
||||||
|
|
||||||
// show the step count in the widget area in a readable sized font
|
// show the step count in the widget area in a readable sized font
|
||||||
function draw_large(st) {
|
function draw_large(st) {
|
||||||
var width = 12 * st.length;
|
this.width = 12 * st.length + 3;
|
||||||
g.reset();
|
g.reset();
|
||||||
g.clearRect(this.x, this.y, this.x + width, this.y + 16); // erase background
|
g.clearRect(this.x, this.y, this.x + this.width, this.y + 16); // erase background
|
||||||
g.setColor(g.theme.fg);
|
g.setColor(g.theme.fg);
|
||||||
g.setFont("6x8",2);
|
g.setFont("6x8",2);
|
||||||
g.setFontAlign(-1, -1);
|
g.setFontAlign(-1, -1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue