From 908f7c4ac1396ec6b27b921b93c6987d65b2409c Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Tue, 16 Jan 2018 13:40:45 +0100 Subject: use positive button for new_contact --- framework/qml/People.qml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'framework') diff --git a/framework/qml/People.qml b/framework/qml/People.qml index 02844501..b58599a1 100644 --- a/framework/qml/People.qml +++ b/framework/qml/People.qml @@ -44,6 +44,16 @@ FocusScope { height: searchBar.height + Kube.Units.smallSpacing width: parent.width + Kube.PositiveButton { + anchors { + verticalCenter: parent.verticalCenter + left: parent.left + leftMargin: Kube.Units.smallSpacing + } + text: "New Contact" + visible: stack.depth == 1 + } + Kube.IconButton { anchors { top: parent.top @@ -61,14 +71,6 @@ FocusScope { width: parent.width * 0.5 placeholderText: "Search..." } - Kube.IconButton { - anchors { - top: parent.top - right: parent.right - rightMargin: Kube.Units.smallSpacing - } - iconName: Kube.Icons.addNew - } } Controls2.StackView { @@ -336,17 +338,15 @@ FocusScope { width: personPageRoot.width - Kube.Units.largeSpacing Repeater { - model: contactController.emails - Row { + delegate: Row { spacing: Kube.Units.smallSpacing Kube.Label { text: qsTr("(main)") } Kube.Label { text: modelData ; color: Kube.Colors.highlightColor } Item { width: Kube.Units.smallSpacing; height: 1 } } } - } Flow { -- cgit v1.2.3