Skip to content

Commit d33f418

Browse files
committed
outline for gui
0 parents  commit d33f418

File tree

10 files changed

+81
-0
lines changed

10 files changed

+81
-0
lines changed

app/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Entry point for the watch app
3+
*/
4+
import document from "document";
5+
6+
let background = document.getElementById("background");
7+
8+
let currentIndex = background.value;
9+
10+
background.value = 0;

companion/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* Entry point for the companion app
3+
*/
4+
5+
console.log("Companion code started");

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"fitbit": {
3+
"appUUID": "fe63f225-3f27-47fc-9a8c-12261dcf0da9",
4+
"appType": "app",
5+
"appDisplayName": "ProductivityFlow",
6+
"iconFile": "resources/icon.png",
7+
"wipeColor": "#8bc34a",
8+
"requestedPermissions": [],
9+
"buildTargets": [
10+
"higgs",
11+
"meson"
12+
],
13+
"i18n": {
14+
"en": {
15+
"name": "ProductivityFlow"
16+
}
17+
}
18+
}
19+
}

resources/index.gui

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<svg>
2+
<use id="background" href="#panoramaview">
3+
<use id="color1" href="#panoramaview-item">
4+
<rect width="100%" height="100%" fill="red"/>
5+
</use>
6+
<use id="color2" href="#panoramaview-item">
7+
<rect width="100%" height="100%" fill="white"/>
8+
</use>
9+
<use id="color3" href="#panoramaview-item">
10+
<rect width="100%" height="100%" fill="blue"/>
11+
</use>
12+
13+
<use id="pagination-dots" href="#pagination-widget" y="8">
14+
<use href="#pagination-dot" />
15+
<use href="#pagination-dot" />
16+
<use href="#pagination-dot" />
17+
<use href="#pagination-dot" />
18+
<use href="#pagination-dot" />
19+
<use href="#pagination-highlight-dot" />
20+
</use>
21+
</use>
22+
23+
<use class="cornerButton" id="playButton" href="#combo-button-lower-right" fill="black">
24+
<set href="combo-button-icon" attributeName="href" to="play.png"/>
25+
<set href="combo-button-icon-press" attributeName="href" to="play_press.png"/>
26+
<set href="combo-button-stroke" attributeName="display" to="inline"/>
27+
</use>
28+
29+
<use class="cornerButton" id="pauseButton" href="#combo-button-lower-left" fill="black">
30+
<set href="combo-button-icon" attributeName="href" to="pause.png"/>
31+
<set href="combo-button-icon-press" attributeName="href" to="pause_press.png"/>
32+
<set href="combo-button-stroke" attributeName="display" to="inline"/>
33+
</use>
34+
35+
36+
</svg>

resources/pause.png

243 Bytes
Loading

resources/pause_press.png

236 Bytes
Loading

resources/play.png

516 Bytes
Loading

resources/play_press.png

384 Bytes
Loading

resources/styles.css

Whitespace-only changes.

resources/widgets.gui

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<svg>
2+
<defs>
3+
<link rel="stylesheet" href="styles.css" />
4+
<link rel="import" href="/mnt/sysassets/widgets_common.gui" />
5+
<!-- Additional Imports -->
6+
<link rel="import" href="/mnt/sysassets/widgets/baseview_widget.gui" />
7+
<link rel="import" href="/mnt/sysassets/widgets/panoramaview_widget.gui" />
8+
<link rel="import" href="/mnt/sysassets/widgets/pagination_dots.gui" />
9+
<link rel="import" href="/mnt/sysassets/widgets/combo_button_widget.gui" />
10+
</defs>
11+
</svg>

0 commit comments

Comments
 (0)