-
-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bangle.js: Now clear entire top/bottom row if there are widgets in it (…
…fix #1790)
- Loading branch information
1 parent
363a90a
commit 87d8b8c
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
(function(){var w=g.getWidth(),h=g.getHeight();var pos={tl:{x:28,y:0,r:0,c:0},tr:{x:w-28,y:0,r:1,c:0},bl:{x:24,y:h-24,r:0,c:0},br:{x:w-24,y:h-24,r:1,c:0}};if(global.WIDGETS){for(var wd of WIDGETS){var p=pos[wd.area];if(!p)return;wd.x=p.x-p.r*wd.width;wd.y=p.y;p.x+=wd.width*(1-2*p.r);p.c++;wd.draw(wd)} | ||
g.reset();if(pos.tl.c)g.clearRect(0,0,pos.tl.x,23);if(pos.bl.c)g.clearRect(0,h-24,pos.bl.x,h-1);if(pos.tr.c)g.clearRect(pos.tr.x,0,w-1,23);if(pos.br.c)g.clearRect(pos.br.x,h-24,w-1,h-1);for(wd of WIDGETS)wd.draw(wd)}}) | ||
(function(){var w=g.getWidth(),h=g.getHeight();var pos={tl:{x:28,y:0,r:0,c:0},tr:{x:w-28,y:0,r:1,c:0},bl:{x:24,y:h-24,r:0,c:0},br:{x:w-24,y:h-24,r:1,c:0}};if(global.WIDGETS){for(var wd of WIDGETS){var p=pos[wd.area];if(!p)return;wd.x=p.x-p.r*wd.width;wd.y=p.y;p.x+=wd.width*(1-2*p.r);p.c++} | ||
g.reset();if(pos.tl.c||pos.tr.c)g.clearRect(0,0,w-1,23);if(pos.bl.c||pos.br.c)g.clearRect(0,h-24,w-1,x,h-1);for(wd of WIDGETS)wd.draw(wd)}}) | ||
|
||
|