diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2015-04-01 10:46:29 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2015-04-01 10:46:29 +0200 |
| commit | b3b881fa4dcfdc008b32a908677b5e5d12d49342 (patch) | |
| tree | a459b325489dc33acab94c27a9cd3ce5ae93222e /app/qml | |
| parent | 3950ff0abc2fb9e9cba73ce0cbdd6af39f24b2f0 (diff) | |
Visible identification of Companion app missing
Diffstat (limited to 'app/qml')
| -rw-r--r-- | app/qml/pages/WatchPage.qml | 17 |
1 files changed, 15 insertions, 2 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 |
