mirror of https://github.com/espruino/BangleApps
keytimer - Use matching theme color for time display background
parent
f4740b149b
commit
8d2616da58
|
@ -1,3 +1,4 @@
|
|||
0.01: New app!
|
||||
0.02: Submitted to the app loader
|
||||
0.03: Rewrote to use scheduler library
|
||||
0.04: Use correct background color for number display
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue