Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Commit

Permalink
blank menus #7
Browse files Browse the repository at this point in the history
Fix using Meiguro's function to check version.
  • Loading branch information
NitroG42 committed Jan 24, 2016
1 parent 2be991c commit 03119ab
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
12 changes: 6 additions & 6 deletions appinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
{
"file": "images/menu_icon.png",
"name": "IMAGE_MENU_ICON",
"type": "png"
"type": "bitmap"
},
{
"file": "images/logo_splash.png",
"name": "IMAGE_LOGO_SPLASH",
"type": "png"
"type": "bitmap"
},
{
"file": "images/tile_splash.png",
"name": "IMAGE_TILE_SPLASH",
"type": "png"
"type": "bitmap"
},
{
"file": "fonts/UbuntuMono-Regular.ttf",
Expand All @@ -32,12 +32,12 @@
"file": "images/todoist.png",
"menuIcon": true,
"name": "IMAGES_TODOIST_PNG",
"type": "png"
"type": "bitmap"
},
{
"file": "images/checkmark.png",
"name": "IMAGES_CHECKMARK_PNG",
"type": "png"
"type": "bitmap"
}
]
},
Expand All @@ -49,7 +49,7 @@
],
"uuid": "30025c65-8dab-40cf-9f47-c75c708799af",
"versionCode": 1,
"versionLabel": "2.0",
"versionLabel": "2.1",
"watchapp": {
"hiddenApp": false,
"watchface": false
Expand Down
16 changes: 16 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var appKey = '4EBM';
var UI = require('ui');
var Vector2 = require('vector2');
var Ajax = require('ajax');
var Platform = require('platform');

var TODOIST_API_URL = 'https://todoist.com/API/v6/sync?';

Expand All @@ -27,6 +28,20 @@ var token;
var seq_no = 0;
var seq_no_global = 0;

function loadColors() {
if(Pebble.getActiveWatchInfo && Platform.version() !== 'aplite') {
textColor = 'lightGray';
textHightLightColor = 'white';
menuColor = 'black';
highlightColor = 'darkCandyAppleRed';
} else { //aplite
textColor = 'black';
textHightLightColor = 'white';
menuColor = 'white';
highlightColor = 'black';
}
}

function displayMessage(title, subtitle) {
var card = new UI.Card();
card.title(title);
Expand Down Expand Up @@ -404,4 +419,5 @@ function loadProjects() {
}
}
token = localStorage.getItem(appKey);
loadColors();
loadProjects();

0 comments on commit 03119ab

Please sign in to comment.