parent
fde54bcba2
commit
9420dc504a
|
@ -18,7 +18,7 @@
|
||||||
"chalk"
|
"chalk"
|
||||||
],
|
],
|
||||||
"uuid": "000fd62a-3f0a-4bdd-a118-b3caa48893a0",
|
"uuid": "000fd62a-3f0a-4bdd-a118-b3caa48893a0",
|
||||||
"versionLabel": "1.1",
|
"versionLabel": "1.2",
|
||||||
"watchapp": {
|
"watchapp": {
|
||||||
"watchface": true
|
"watchface": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ Pebble.addEventListener('webviewclosed', function(e) {
|
||||||
if (configData.colors) {
|
if (configData.colors) {
|
||||||
Pebble.sendAppMessage({
|
Pebble.sendAppMessage({
|
||||||
colors: configData.colors,
|
colors: configData.colors,
|
||||||
inverse: configData.inverse === true
|
inverse: 0+(configData.inverse === true)
|
||||||
}, function() {
|
}, function() {
|
||||||
console.log('Send successful!');
|
console.log('Send successful!');
|
||||||
}, function() {
|
}, function() {
|
||||||
|
|
|
@ -32,7 +32,7 @@ static bool s_animating = false, debug = false, inverse = false;
|
||||||
static GColor gcolorbg, gcolorh, gcolort;
|
static GColor gcolorbg, gcolorh, gcolort;
|
||||||
|
|
||||||
static void handle_colorchange() {
|
static void handle_colorchange() {
|
||||||
switch(colors) {
|
switch (colors) {
|
||||||
case 1: // greens
|
case 1: // greens
|
||||||
gcolorh = GColorMediumSpringGreen;
|
gcolorh = GColorMediumSpringGreen;
|
||||||
gcolort = GColorMidnightGreen;
|
gcolort = GColorMidnightGreen;
|
||||||
|
@ -60,7 +60,7 @@ static void handle_colorchange() {
|
||||||
GColor tempcolor = gcolorh;
|
GColor tempcolor = gcolorh;
|
||||||
gcolorh = gcolort;
|
gcolorh = gcolort;
|
||||||
gcolort = tempcolor;
|
gcolort = tempcolor;
|
||||||
switch(colors) {
|
switch (colors) {
|
||||||
case 1: // greens
|
case 1: // greens
|
||||||
gcolorh = GColorDarkGreen;
|
gcolorh = GColorDarkGreen;
|
||||||
gcolort = GColorMediumAquamarine;
|
gcolort = GColorMediumAquamarine;
|
||||||
|
@ -96,7 +96,7 @@ static void inbox_received_handler(DictionaryIterator *iter, void *context) {
|
||||||
colors = colors_t->value->uint8;
|
colors = colors_t->value->uint8;
|
||||||
persist_write_int(KEY_COLORS, colors);
|
persist_write_int(KEY_COLORS, colors);
|
||||||
}
|
}
|
||||||
if(inverse_t && inverse_t->value->int32 > 0) {
|
if(inverse_t && inverse_t->value->int8 > 0) {
|
||||||
persist_write_bool(KEY_INVERSE, true);
|
persist_write_bool(KEY_INVERSE, true);
|
||||||
inverse = true;
|
inverse = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -140,7 +140,7 @@ static void tick_handler(struct tm *tick_time, TimeUnits changed) {
|
||||||
// Store time
|
// Store time
|
||||||
// dummy time in emulator
|
// dummy time in emulator
|
||||||
if (debug) {
|
if (debug) {
|
||||||
s_last_time.hours = 5;
|
s_last_time.hours = 11;
|
||||||
s_last_time.minutes = tick_time->tm_sec;
|
s_last_time.minutes = tick_time->tm_sec;
|
||||||
} else {
|
} else {
|
||||||
s_last_time.hours = tick_time->tm_hour;
|
s_last_time.hours = tick_time->tm_hour;
|
||||||
|
|
Loading…
Reference in New Issue