diff --git a/apps/gpstrek/convert.xsl b/apps/gpstrek/convert.xsl index 7afbd6813..72b19b565 100644 --- a/apps/gpstrek/convert.xsl +++ b/apps/gpstrek/convert.xsl @@ -1,5 +1,5 @@ - + diff --git a/apps/gpstrek/interface.html b/apps/gpstrek/interface.html index 1f6ed1f37..b645abb53 100644 --- a/apps/gpstrek/interface.html +++ b/apps/gpstrek/interface.html @@ -15,6 +15,9 @@ function handleOnload(readerEvent){ var content = readerEvent.target.result; + // Replace the gpx version 1.0 with 1.1 to allow parsing older gpx files. The nodes referenced by the xsl exist in both versions. + content = content.replaceAll("http://www.topografix.com/GPX/1/0", "http://www.topografix.com/GPX/1/1"); + var xsltProcessor = new XSLTProcessor(); var myXMLHTTPRequest = new XMLHttpRequest(); diff --git a/apps/keytimer/ChangeLog b/apps/keytimer/ChangeLog index 1c3954fc7..d2481d44c 100644 --- a/apps/keytimer/ChangeLog +++ b/apps/keytimer/ChangeLog @@ -1,3 +1,4 @@ 0.01: New app! 0.02: Submitted to the app loader -0.03: Rewrote to use scheduler library \ No newline at end of file +0.03: Rewrote to use scheduler library +0.04: Use theme colors diff --git a/apps/keytimer/keypad.js b/apps/keytimer/keypad.js index 5844c9a63..6b34d19f2 100644 --- a/apps/keytimer/keypad.js +++ b/apps/keytimer/keypad.js @@ -95,7 +95,8 @@ function getFontSize(length) { function updateDisplay() { let displayString = inputStringToDisplayString(common.state.inputString); - g.clearRect(0, 24, 175, 43).setColor(storage.readJSON('setting.json').theme.fg2).setFontAlign(1, -1).setFont("Vector", getFontSize(displayString.length)).drawString(displayString, 176, 24); + let t = storage.readJSON('setting.json').theme; + g.setBgColor(t.bg2).clearRect(0, 24, 175, 43).setColor(t.fg2).setFontAlign(1, -1).setFont("Vector", getFontSize(displayString.length)).drawString(displayString, 176, 24); } exports.show = function (callerCommon) { diff --git a/apps/keytimer/metadata.json b/apps/keytimer/metadata.json index e0e46f92f..43edf9957 100644 --- a/apps/keytimer/metadata.json +++ b/apps/keytimer/metadata.json @@ -1,7 +1,7 @@ { "id": "keytimer", "name": "Keypad Timer", - "version": "0.03", + "version": "0.04", "description": "A timer with a keypad that runs in the background", "icon": "icon.png", "type": "app", diff --git a/apps/keytimer/timerview.js b/apps/keytimer/timerview.js index 4910d805f..1b01fec6c 100644 --- a/apps/keytimer/timerview.js +++ b/apps/keytimer/timerview.js @@ -7,21 +7,25 @@ const BUTTON_ICONS = { let common; +let s = require("Storage").readJSON("setting.json"); + function drawButtons() { //Draw the backdrop const BAR_TOP = g.getHeight() - 24; - g.setColor(0, 0, 1).setFontAlign(0, -1) + g.setBgColor(s.theme.bg2).setColor(s.theme.fg2).setFontAlign(0, -1) .clearRect(0, BAR_TOP, g.getWidth(), g.getHeight()) - .fillRect(0, BAR_TOP, g.getWidth(), g.getHeight()) - .setColor(1, 1, 1) + .setColor(s.theme.fg2) .drawLine(g.getWidth() / 2, BAR_TOP, g.getWidth() / 2, g.getHeight()) //Draw the buttons - .drawImage(BUTTON_ICONS.reset, g.getWidth() / 4, BAR_TOP); + .setColor(s.theme.fg2) + .drawImage(BUTTON_ICONS.reset, g.getWidth() / 4, BAR_TOP + 12, {rotate:0}); // rotate option centers the image if (common.running()) { - g.drawImage(BUTTON_ICONS.pause, g.getWidth() * 3 / 4, BAR_TOP); + g.setColor(s.theme.fg2) + .drawImage(BUTTON_ICONS.pause, g.getWidth() * 3 / 4, BAR_TOP + 12, {rotate:0}); } else { - g.drawImage(BUTTON_ICONS.play, g.getWidth() * 3 / 4, BAR_TOP); + g.setColor(s.theme.fg2) + .drawImage(BUTTON_ICONS.play, g.getWidth() * 3 / 4, BAR_TOP + 12, {rotate:0}); } } diff --git a/apps/multitimer/ChangeLog b/apps/multitimer/ChangeLog index e4985434e..b708a990f 100644 --- a/apps/multitimer/ChangeLog +++ b/apps/multitimer/ChangeLog @@ -2,4 +2,5 @@ 0.02: Update for time_utils module 0.03: Use default Bangle formatter for booleans 0.04: Remove copied sched alarm.js & import newer features (oneshot alarms) -0.05: Support fastloading +0.05: Fix creating new alarms/timers in hardmode +0.06: Support fastloading diff --git a/apps/multitimer/app.js b/apps/multitimer/app.js index 3c790d8e4..079136431 100644 --- a/apps/multitimer/app.js +++ b/apps/multitimer/app.js @@ -265,7 +265,6 @@ function editTimer(idx, a) { a.last = 0; a.data.ot = a.timer; a.appid = "multitimer"; - a.js = "(require('Storage').read('multitimer.alarm.js') !== undefined) ? load('multitimer.alarm.js') : load('sched.js')"; if (idx < 0) alarms.push(a); else alarms[timerIdx[idx]] = a; require("sched").setAlarms(alarms); diff --git a/apps/multitimer/metadata.json b/apps/multitimer/metadata.json index 1db3235a1..40d376986 100644 --- a/apps/multitimer/metadata.json +++ b/apps/multitimer/metadata.json @@ -1,7 +1,7 @@ { "id": "multitimer", "name": "Multi Timer", - "version": "0.05", + "version": "0.06", "description": "Set timers and chronographs (stopwatches) and watch them count down in real time. Pause, create, edit, and delete timers and chronos, and add custom labels/messages. Also sets alarms.", "icon": "app.png", "screenshots": [