set widget sortorder through code for widpa,widpb,widbata,widlock

pull/1325/head
hughbarney 2022-01-19 23:09:52 +00:00
parent c4946c7a3c
commit 3670ff2170
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
"type": "widget",
"tags": "widget,lock",
"supports": ["BANGLEJS","BANGLEJS2"],
"sortorder": -10,
"sortorder": 10,
"storage": [
{"name":"widlock.wid.js","url":"widget.js"}
]

View File

@ -4,7 +4,7 @@
WIDGETS["lock"].width = Bangle.isLocked()?16:0;
Bangle.drawWidgets();
});
WIDGETS["lock"]={area:"tl",sortorder:-10,width:Bangle.isLocked()?16:0,draw:function(w) {
WIDGETS["lock"]={area:"tl",sortorder:10,width:Bangle.isLocked()?16:0,draw:function(w) {
if (Bangle.isLocked())
g.reset().drawImage(atob("DhABH+D/wwMMDDAwwMf/v//4f+H/h/8//P/z///f/g=="), w.x+1, w.y+4);
}};