aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/wearable/qml/LauncherPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/wearable/qml/LauncherPage.qml')
-rw-r--r--examples/quickcontrols2/wearable/qml/LauncherPage.qml18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/quickcontrols2/wearable/qml/LauncherPage.qml b/examples/quickcontrols2/wearable/qml/LauncherPage.qml
index 6ff118df..34f117c4 100644
--- a/examples/quickcontrols2/wearable/qml/LauncherPage.qml
+++ b/examples/quickcontrols2/wearable/qml/LauncherPage.qml
@@ -68,12 +68,12 @@ PathView {
model: ListModel {
ListElement {
title: qsTr("World Clock")
- icon: "WorldClock/images/watch.png"
+ icon: "WorldClock/images/worldclock.png"
page: "WorldClock/WorldClockPage.qml"
}
ListElement {
title: qsTr("Navigation")
- icon: "Navigation/images/route.png"
+ icon: "Navigation/images/navigation.png"
page: "Navigation/NavigationPage.qml"
}
ListElement {
@@ -104,24 +104,24 @@ PathView {
}
delegate: QQC2.AbstractButton {
+ width: circularView.itemSize
+ height: circularView.itemSize
+
text: model.title
opacity: PathView.itemOpacity
+ padding: 12
contentItem: Image {
source: model.icon
fillMode: Image.Pad
- sourceSize.width: circularView.itemSize
- sourceSize.height: circularView.itemSize
+ sourceSize.width: parent.availableWidth
+ sourceSize.height: parent.availableHeight
}
background: Rectangle {
radius: width / 2
- color: "transparent"
-
border.width: 3
- border.color: parent.PathView.isCurrentItem ?
- "transparent"
- : UIStyle.colorQtGray4
+ border.color: parent.PathView.isCurrentItem ? UIStyle.colorQtPrimGreen : UIStyle.colorQtGray4
}
onClicked: {