mirror of https://github.com/espruino/BangleApps
Fix default values for font and text size
parent
958a834d1c
commit
8d2c14f5b8
|
@ -10,7 +10,7 @@ Configuration:
|
|||
4. Add ".json" to the end of the Trello board URL and refresh page
|
||||
5. Find your list ID
|
||||
6. Save list ID to the "flashcards.settings.json" file on your watch, e.g.:
|
||||
{"listId":"65942f7b27z68000996ddc00"}
|
||||
{"listId":"65942f7b27z68000996ddc00","fontSize":1,"textSize":9}
|
||||
7. Connect phone with Gadgetbridge to the watch
|
||||
8. Enable "Allow Internet Access" in Gadgetbridge
|
||||
9. On the watch go to Settings -> Apps -> Flash Cards -> Get from Trello
|
||||
|
|
|
@ -19,7 +19,11 @@ let backSide = false;
|
|||
let drawTimeout = undefined;
|
||||
let fontSizes = ["15%","20%","25%"];
|
||||
|
||||
let settings = storage.readJSON(CARD_SETTINGS_FILE,1) || { litsId: "", fontSize: fontSizes[1], textSize: 9 };
|
||||
let settings = Object.assign({
|
||||
listId: "",
|
||||
fontSize: 1,
|
||||
textSize: 9
|
||||
}, storage.readJSON(CARD_SETTINGS_FILE, true) || {});
|
||||
|
||||
// Cards data
|
||||
function wordWrap(str, maxLength) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"listId":""}
|
||||
{"listId":"","fontSize":1,"textSize":9}
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
var settings = Object.assign({
|
||||
listId: "",
|
||||
textSize: 9,
|
||||
fontSize: 1
|
||||
fontSize: 1,
|
||||
textSize: 9
|
||||
}, storage.readJSON(settingsFile, true) || {});
|
||||
|
||||
function writeSettings() {
|
||||
|
|
Loading…
Reference in New Issue