1
0
Fork 0

launch: small theme colour fix

master
Richard de Boer 2021-10-02 17:11:35 +02:00
parent 44aa03e428
commit 5443fc760a
3 changed files with 6 additions and 3 deletions

View File

@ -42,7 +42,7 @@
"name": "Launcher (Default)", "name": "Launcher (Default)",
"shortName":"Launcher", "shortName":"Launcher",
"icon": "app.png", "icon": "app.png",
"version":"0.06", "version":"0.07",
"description": "This is needed by Bangle.js to display a menu allowing you to choose your own applications. You can replace this with a customised launcher.", "description": "This is needed by Bangle.js to display a menu allowing you to choose your own applications. You can replace this with a customised launcher.",
"tags": "tool,system,launcher,b2", "tags": "tool,system,launcher,b2",
"type":"launch", "type":"launch",

View File

@ -4,3 +4,4 @@
0.04: Now displays widgets 0.04: Now displays widgets
0.05: Use g.theme for colours 0.05: Use g.theme for colours
0.06: Use Bangle.setUI for buttons 0.06: Use Bangle.setUI for buttons
0.07: Theme colours fix

View File

@ -33,8 +33,10 @@ function drawMenu() {
if (i+menuScroll==selected) { if (i+menuScroll==selected) {
g.setColor(g.theme.bgH).fillRect(0,y,w-1,y+63); g.setColor(g.theme.bgH).fillRect(0,y,w-1,y+63);
g.setColor(g.theme.fgH).drawRect(0,y,w-1,y+63); g.setColor(g.theme.fgH).drawRect(0,y,w-1,y+63);
} else } else {
g.clearRect(0,y,w-1,y+63); g.clearRect(0, y, w-1, y+63);
g.setColor(g.theme.fg);
}
g.drawString(app.name,64,y+32); g.drawString(app.name,64,y+32);
var icon=undefined; var icon=undefined;
if (app.icon) icon = s.read(app.icon); if (app.icon) icon = s.read(app.icon);