summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2015-04-01 10:46:29 +0200
committerTomasz Sterna <tomek@xiaoka.com>2015-04-01 10:46:29 +0200
commitb3b881fa4dcfdc008b32a908677b5e5d12d49342 (patch)
treea459b325489dc33acab94c27a9cd3ce5ae93222e
parent3950ff0abc2fb9e9cba73ce0cbdd6af39f24b2f0 (diff)
Visible identification of Companion app missing
-rw-r--r--app/qml/pages/WatchPage.qml17
-rw-r--r--app/translations/pebble-es.ts7
-rw-r--r--app/translations/pebble.ts7
3 files changed, 27 insertions, 4 deletions
diff --git a/app/qml/pages/WatchPage.qml b/app/qml/pages/WatchPage.qml
index 7ccf12a..6c24ef0 100644
--- a/app/qml/pages/WatchPage.qml
+++ b/app/qml/pages/WatchPage.qml
@@ -174,7 +174,7 @@ Page {
color: slotDelegate.highlighted ? Theme.highlightColor : Theme.primaryColor
}
color: "transparent"
- visible: (isEmptySlot || !isLocalApp) && !slotBusy.running
+ visible: isEmptySlot && !slotBusy.running
}
BusyIndicator {
@@ -194,7 +194,7 @@ Page {
verticalCenter: parent.verticalCenter
}
text: isEmptySlot ? qsTr("(empty slot)") : (isKnownApp ? (isLocalApp ? appInfo.longName : appInfo.shortName) : qsTr("(slot in use by unknown app)"))
- color: slotDelegate.highlighted ? Theme.highlightColor : Theme.primaryColor
+ color: slotDelegate.highlighted ? Theme.highlightColor : (isLocalApp ? Theme.primaryColor : Theme.secondaryColor )
onTextChanged: slotDelegate.busy = false;
}
@@ -206,6 +206,19 @@ Page {
visible: isEmptySlot
onClicked: install();
}
+ Label {
+ text: qsTr("Companion app missing")
+ color: Theme.secondaryColor
+ horizontalAlignment: Text.Center
+ font.pixelSize: Theme.fontSizeSmall
+ visible: !isEmptySlot && !isLocalApp
+ anchors {
+ left: parent.left
+ right: parent.right
+ }
+ height: Theme.itemSizeSmall
+ verticalAlignment : Text.AlignVCenter
+ }
MenuItem {
text: qsTr("Configure...")
visible: !isEmptySlot && isLocalApp
diff --git a/app/translations/pebble-es.ts b/app/translations/pebble-es.ts
index ab30bef..8f50323 100644
--- a/app/translations/pebble-es.ts
+++ b/app/translations/pebble-es.ts
@@ -332,11 +332,16 @@ Si esto tarda mucho, comprueba que el reloj esté emparejado correctamente.</tra
</message>
<message>
<location filename="../qml/pages/WatchPage.qml" line="210"/>
+ <source>Companion app missing</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../qml/pages/WatchPage.qml" line="223"/>
<source>Configure...</source>
<translation>Configurar...</translation>
</message>
<message>
- <location filename="../qml/pages/WatchPage.qml" line="215"/>
+ <location filename="../qml/pages/WatchPage.qml" line="228"/>
<source>Uninstall</source>
<translation>Desinstalar</translation>
</message>
diff --git a/app/translations/pebble.ts b/app/translations/pebble.ts
index b1cbc6b..d019ecd 100644
--- a/app/translations/pebble.ts
+++ b/app/translations/pebble.ts
@@ -327,11 +327,16 @@ If it can&apos;t be found please check it&apos;s available and paired in Bluetoo
</message>
<message>
<location filename="../qml/pages/WatchPage.qml" line="210"/>
+ <source>Companion app missing</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../qml/pages/WatchPage.qml" line="223"/>
<source>Configure...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../qml/pages/WatchPage.qml" line="215"/>
+ <location filename="../qml/pages/WatchPage.qml" line="228"/>
<source>Uninstall</source>
<translation type="unfinished"></translation>
</message>