Merge pull request #94 from ra100/feature/gbridge-contrast

 gbridge: increase contrast
master
Gordon Williams 2020-02-10 13:20:27 +00:00 committed by GitHub
commit d0f477b6c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -27,7 +27,7 @@
{ "id": "gbridge",
"name": "Gadgetbridge",
"icon": "app.png",
"version":"0.01",
"version":"0.02",
"description": "The default notification handler for Gadgetbridge notifications from Android",
"tags": "tool,system,android",
"storage": [

2
apps/gbridge/Changelog Normal file
View File

@ -0,0 +1,2 @@
0.01: Initial version
0.02: Increase contrast (darker notification background, white text)

View File

@ -9,7 +9,7 @@
var oldMode = Bangle.getLCDMode();
Bangle.setLCDMode("direct");
g.setClipRect(0,240,239,319);
g.setColor("#404040");
g.setColor("#222222");
g.fillRect(1,241,238,318);
render(320-size);
g.setColor("#ffffff");
@ -60,7 +60,7 @@
g.setFont("6x8",2);
g.drawString(j.title,x,y+25);
g.setFont("6x8",1);
g.setColor("#b0b0b0");
g.setColor("#ffffff");
// split text up a word boundaries
var txt = j.body.split("\n");
var MAXCHARS = 38;
@ -97,7 +97,7 @@
g.setColor("#ffffff");
g.drawString(musicInfo.artist,x,y+8);
g.setFont("6x8",1);
g.setColor("#c0c0c0");
g.setColor("#ffffff");
g.drawString(musicInfo.track,x,y+22);
});
if (musicState=="pause")