Added setting to show single offset small, as if there is more than one
parent
cf6ee6045f
commit
c873bbe0dd
|
|
@ -9,6 +9,7 @@ All this is configurable:
|
||||||
|
|
||||||
- Show seconds only when unlocked (saves battery) / always / do not show seconds
|
- Show seconds only when unlocked (saves battery) / always / do not show seconds
|
||||||
- Green color on dark mode (on/off)
|
- Green color on dark mode (on/off)
|
||||||
|
- 1 Offset Small: single location shows as small (like more than 1)
|
||||||
- Show sun info (on/off) (set your location in the mylocation app)
|
- Show sun info (on/off) (set your location in the mylocation app)
|
||||||
- Rotation degree on swipe (off / 90 / 180 / 270)
|
- Rotation degree on swipe (off / 90 / 180 / 270)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,7 @@ let def = function(value, def) {
|
||||||
let settings = require('Storage').readJSON(SETTINGSFILE, true) || {};
|
let settings = require('Storage').readJSON(SETTINGSFILE, true) || {};
|
||||||
secondsMode = def(settings.secondsMode, "when unlocked");
|
secondsMode = def(settings.secondsMode, "when unlocked");
|
||||||
showSunInfo = def(settings.showSunInfo, true);
|
showSunInfo = def(settings.showSunInfo, true);
|
||||||
|
singleOffsetSmall = def(settings.singleOffsetSmall, false);
|
||||||
colorWhenDark = def(settings.colorWhenDark, "green");
|
colorWhenDark = def(settings.colorWhenDark, "green");
|
||||||
rotationTarget = def(settings.rotationTarget, "90");
|
rotationTarget = def(settings.rotationTarget, "90");
|
||||||
rotationTarget = parseInt(rotationTarget) || 0;
|
rotationTarget = parseInt(rotationTarget) || 0;
|
||||||
|
|
@ -257,7 +258,7 @@ let draw = function() {
|
||||||
minutes = doublenum(dx.getMinutes());
|
minutes = doublenum(dx.getMinutes());
|
||||||
|
|
||||||
|
|
||||||
if (offsets.length === 1 && false) {
|
if (offsets.length === 1 && !singleOffsetSmall) {
|
||||||
let date = [require("locale").dow(new Date(), 1), require("locale").date(new Date(), 1)];
|
let date = [require("locale").dow(new Date(), 1), require("locale").date(new Date(), 1)];
|
||||||
// For a single secondary timezone, draw it bigger and drop time zone to second line
|
// For a single secondary timezone, draw it bigger and drop time zone to second line
|
||||||
const xOffset = 30;
|
const xOffset = 30;
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,13 @@
|
||||||
"< Back": () => back(),
|
"< Back": () => back(),
|
||||||
"Seconds": stringInSettings("secondsMode", ["always", "when unlocked", "none"]),
|
"Seconds": stringInSettings("secondsMode", ["always", "when unlocked", "none"]),
|
||||||
"Color w. dark": stringInSettings("colorWhenDark", ["green", "default"]),
|
"Color w. dark": stringInSettings("colorWhenDark", ["green", "default"]),
|
||||||
|
"1 Offset Small": {
|
||||||
|
value: (settings.singleOffsetSmall !== undefined ? settings.singleOffsetSmall : true),
|
||||||
|
onchange: v=> {
|
||||||
|
settings.singleOffsetSmall = v;
|
||||||
|
writeSettings();
|
||||||
|
}
|
||||||
|
},
|
||||||
"Show SunInfo": {
|
"Show SunInfo": {
|
||||||
value: (settings.showSunInfo !== undefined ? settings.showSunInfo : true),
|
value: (settings.showSunInfo !== undefined ? settings.showSunInfo : true),
|
||||||
onchange: v => {
|
onchange: v => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue