forked from FOSS/BangleApps
launch: small theme colour fix
parent
44aa03e428
commit
5443fc760a
|
@ -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",
|
||||||
|
|
|
@ -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
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue