fix: dark theme color
parent
700e12f18d
commit
c852e1a215
|
|
@ -5008,7 +5008,7 @@
|
|||
"id": "pebbled",
|
||||
"name": "Pebble Clock with distance",
|
||||
"shortName": "Pebble + distance",
|
||||
"version": "0.02",
|
||||
"version": "0.1",
|
||||
"description": "Fork of Pebble Clock with distance in KM. Both step count and the distance are on the main screen. Default step length = 0.75m (can be changed in settings).",
|
||||
"readme": "README.md",
|
||||
"icon": "pebbled.png",
|
||||
|
|
|
|||
|
|
@ -80,6 +80,12 @@ function draw() {
|
|||
g.setColor(settings.bg);
|
||||
g.drawImage(img, w/2 + ((w/2) - 64)/2, -2, { scale: 1 });
|
||||
drawCalendar(((w/2) - 42)/2, 11, 42, 4, da[2]);
|
||||
|
||||
// distance
|
||||
if (settings.color == 'Blue' || settings.color == 'Red')
|
||||
g.setColor('#fff'); // white on blue or red best contrast
|
||||
else
|
||||
g.setColor('#000'); // otherwise black regardless of theme
|
||||
g.drawString((stps / 1000 * settings.avStep).toFixed(2) + ' KM', w/2, ha + 107);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue