diff --git a/retroshare-qml-app/src/Contacts.qml b/retroshare-qml-app/src/Contacts.qml index 4666c928a..274483a77 100644 --- a/retroshare-qml-app/src/Contacts.qml +++ b/retroshare-qml-app/src/Contacts.qml @@ -160,22 +160,12 @@ Item anchors.horizontalCenter: parent.horizontalCenter color: "white" - Image - { - id: searchIcon - height: searchText.height / 2 - width: searchText.height / 2 - anchors.verticalCenter: parent.verticalCenter - source: "qrc:/icons/searvh.svg" - } - TextField { id: searchText - anchors.left: searchIcon.right anchors.verticalCenter: parent.verticalCenter placeholderText : "Search contacts..." - width: parent.width - searchIcon.width - 5 + width: parent.width - 5 anchors.leftMargin: 5 background: Rectangle diff --git a/retroshare-qml-app/src/main-app.qml b/retroshare-qml-app/src/main-app.qml index 9c4a7a235..aa86e46f7 100644 --- a/retroshare-qml-app/src/main-app.qml +++ b/retroshare-qml-app/src/main-app.qml @@ -108,8 +108,25 @@ ApplicationWindow anchors.left: imageLoader.right anchors.leftMargin: 20 } + + + BtnIcon + { + id: searchIcon + height: parent.height - 10 + width: parent.height - 10 + anchors.verticalCenter: parent.verticalCenter + imgUrl: "qrc:/icons/search.svg" + anchors.right: menu.left + onClicked: + { + stackView.push("qrc:/Contacts.qml", + {'searching': true} ) + } + } MouseArea { + id: menu height: parent.height width: parent.height anchors.right: parent.right