mirror of https://github.com/espruino/BangleApps
Daisy 0.06 changed Steps to STEPS, enahnced contrast when using light theme
parent
172df0dc27
commit
2aac234b42
|
@ -3,3 +3,4 @@
|
||||||
0.03: fix metadata.json to allow setting as clock
|
0.03: fix metadata.json to allow setting as clock
|
||||||
0.04: added heart rate which is switched on when cycled to it through up/down touch on rhs
|
0.04: added heart rate which is switched on when cycled to it through up/down touch on rhs
|
||||||
0.05: changed text to uppercase, just looks better, removed colons on text
|
0.05: changed text to uppercase, just looks better, removed colons on text
|
||||||
|
0.06: better contrast for light theme, use fg color of dithered ring color
|
||||||
|
|
|
@ -28,5 +28,6 @@ See [#1248](https://github.com/espruino/BangleApps/issues/1248)
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||

|

|
||||||
|

|
||||||
|
|
||||||
It is worth looking at the real thing though as the screenshot does not do it justice.
|
It is worth looking at the real thing though as the screenshots do not do it justice.
|
||||||
|
|
|
@ -41,10 +41,17 @@ Graphics.prototype.setFontRoboto20 = function(scale) {
|
||||||
};
|
};
|
||||||
|
|
||||||
function assignPalettes() {
|
function assignPalettes() {
|
||||||
// palette for 0-40%
|
if (g.theme.dark) {
|
||||||
pal1 = new Uint16Array([g.theme.bg, g.toColor(settings.gy), g.toColor(settings.fg), g.toColor("#00f")]);
|
// palette for 0-40%
|
||||||
// palette for 50-100%
|
pal1 = new Uint16Array([g.theme.bg, g.toColor(settings.gy), g.toColor(settings.fg), g.toColor("#00f")]);
|
||||||
pal2 = new Uint16Array([g.theme.bg, g.toColor(settings.fg), g.toColor(settings.gy), g.toColor("#00f")]);
|
// palette for 50-100%
|
||||||
|
pal2 = new Uint16Array([g.theme.bg, g.toColor(settings.fg), g.toColor(settings.gy), g.toColor("#00f")]);
|
||||||
|
} else {
|
||||||
|
// palette for 0-40%
|
||||||
|
pal1 = new Uint16Array([g.theme.bg, g.theme.fg, g.toColor(settings.fg), g.toColor("#00f")]);
|
||||||
|
// palette for 50-100%
|
||||||
|
pal2 = new Uint16Array([g.theme.bg, g.toColor(settings.fg), g.theme.fg, g.toColor("#00f")]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setSmallFont20() {
|
function setSmallFont20() {
|
||||||
|
@ -109,10 +116,10 @@ function updateSunRiseSunSet(now, lat, lon, line){
|
||||||
const infoData = {
|
const infoData = {
|
||||||
ID_DATE: { calc: () => {var d = (new Date()).toString().split(" "); return d[2] + ' ' + d[1] + ' ' + d[3];} },
|
ID_DATE: { calc: () => {var d = (new Date()).toString().split(" "); return d[2] + ' ' + d[1] + ' ' + d[3];} },
|
||||||
ID_DAY: { calc: () => {var d = require("locale").dow(new Date()).toLowerCase(); return d[0].toUpperCase() + d.substring(1);} },
|
ID_DAY: { calc: () => {var d = require("locale").dow(new Date()).toLowerCase(); return d[0].toUpperCase() + d.substring(1);} },
|
||||||
ID_SR: { calc: () => 'Sunrise ' + sunRise },
|
ID_SR: { calc: () => 'SUNRISE ' + sunRise },
|
||||||
ID_SS: { calc: () => 'Sunset ' + sunSet },
|
ID_SS: { calc: () => 'SUNSET ' + sunSet },
|
||||||
ID_STEP: { calc: () => 'Steps ' + getSteps() },
|
ID_STEP: { calc: () => 'STEPS ' + getSteps() },
|
||||||
ID_BATT: { calc: () => 'Battery ' + E.getBattery() + '%' },
|
ID_BATT: { calc: () => 'BATTERY ' + E.getBattery() + '%' },
|
||||||
ID_HRM: { calc: () => hrmCurrent }
|
ID_HRM: { calc: () => hrmCurrent }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -225,7 +232,7 @@ function drawSteps() {
|
||||||
setSmallFont();
|
setSmallFont();
|
||||||
g.setFontAlign(0,0);
|
g.setFontAlign(0,0);
|
||||||
g.setColor(g.theme.fg);
|
g.setColor(g.theme.fg);
|
||||||
g.drawString('Steps ' + getSteps(), w/2, (3*h/4) - 4);
|
g.drawString('STEPS ' + getSteps(), w/2, (3*h/4) - 4);
|
||||||
drawingSteps = false;
|
drawingSteps = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
{ "id": "daisy",
|
{ "id": "daisy",
|
||||||
"name": "Daisy",
|
"name": "Daisy",
|
||||||
"version":"0.05",
|
"version":"0.06",
|
||||||
"dependencies": {"mylocation":"app"},
|
"dependencies": {"mylocation":"app"},
|
||||||
"description": "A clock based on the Pastel clock with large ring guage for steps",
|
"description": "A clock based on the Pastel clock with large ring guage for steps",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
"tags": "clock",
|
"tags": "clock",
|
||||||
"supports" : ["BANGLEJS2"],
|
"supports" : ["BANGLEJS2"],
|
||||||
"screenshots": [{"url":"screenshot_daisy2.jpg"}],
|
"screenshots": [{"url":"screenshot_daisy2.png"}],
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"storage": [
|
"storage": [
|
||||||
{"name":"daisy.app.js","url":"app.js"},
|
{"name":"daisy.app.js","url":"app.js"},
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
Loading…
Reference in New Issue