Skip to content

Commit 1b50cdf

Browse files
committed
pebblepp 0.11: Make the border on clockinfos the default
Fix clockinfos when too long (previously just output '...')
1 parent b784275 commit 1b50cdf

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

apps/pebblepp/ChangeLog

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
0.01: First release
22
0.02: clock_info now uses app name to maintain settings specifically for this clock face
3-
ensure clockinfo text is usppercase (font doesn't render lowercase)
3+
ensure clockinfo text is uppercase (font doesn't render lowercase)
44
0.03: Use smaller font if clock_info test doesn't fit in area
55
0.04: Ensure we only scale down clockinfo text if it really won't fit
66
0.05: Minor code improvements
@@ -10,4 +10,6 @@
1010
0.09: Add date on the bottom
1111
0.10: Fix size of bottom bar after 0.09
1212
Make date toggleable with settings
13-
Optional border around clockinfos (available from settings)
13+
Optional border around clockinfos (available from settings)
14+
0.11: Make the border on clockinfos the default
15+
Fix clockinfos when too long (previously just output '...')

apps/pebblepp/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Graphics.prototype.setFontLECO1976Regular14 = function() {
2020

2121
{
2222
const SETTINGS_FILE = "pebblepp.json";
23-
let settings = Object.assign({'theme':'System', 'showdate':true, 'clkinfoborder': false}, require("Storage").readJSON(SETTINGS_FILE,1)||{});
23+
let settings = Object.assign({'theme':'System', 'showdate':true, 'clkinfoborder': true}, require("Storage").readJSON(SETTINGS_FILE,1)||{});
2424
let background = require("clockbg");
2525
let theme;
2626
let drawTimeout;
@@ -102,7 +102,7 @@ let clockInfoDraw = (itm, info, options) => {
102102
g.setFontLECO1976Regular14();
103103
if (g.stringWidth(txt) > options.w) {// if still too big, split to 2 lines
104104
var l = g.wrapString(txt, options.w);
105-
txt = l.slice(0,2).join("\n") + (l.length>2)?"...":"";
105+
txt = l.slice(0,2).join("\n") + ((l.length>2)?"...":"");
106106
}
107107
y = options.y+options.h-12;
108108
if (settings.clkinfoborder) {
@@ -147,4 +147,4 @@ background.fillRect(Bangle.appRect); // start off with completely clear backgrou
147147
g.setColor(theme.fg).fillRect(0, h2 - 6, w, h3 + 6);
148148

149149
draw();
150-
}
150+
}

apps/pebblepp/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "pebblepp",
33
"name": "Pebble++ Clock",
44
"shortName": "Pebble++",
5-
"version": "0.10",
5+
"version": "0.11",
66
"description": "A Pebble style clock (based on the 'Pebble Clock' app) but with two configurable ClockInfo items at the top and custom backgrounds. Date/theme/borders be reconfigured using settings page.",
77
"icon": "app.png",
88
"screenshots": [{"url":"screenshot.png"},{"url":"screenshot2.png"}],

apps/pebblepp/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const SETTINGS_FILE = "pebblepp.json";
33

44
// Initialize with default settings...
5-
let settings = {'theme':'System', 'showdate':true, 'clkinfoborder':false}
5+
let settings = {'theme':'System', 'showdate':true, 'clkinfoborder':true}
66
// ...and overwrite them with any saved values
77
// This way saved values are preserved if a new version adds more settings
88
const storage = require('Storage');

0 commit comments

Comments
 (0)