keytimer - Use matching theme color for time display background

pull/2884/head
Martin Boonk 2023-07-16 10:45:22 +02:00
parent f4740b149b
commit 8d2616da58
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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",