From 4df10e3c694ba2ec684dd6549aa6caa7f0f73f60 Mon Sep 17 00:00:00 2001 From: Angela Mazzurco Date: Sat, 22 Jul 2017 18:40:09 +0200 Subject: [PATCH] Style buttons --- retroshare-qml-app/src/RsLoginPassView.qml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/retroshare-qml-app/src/RsLoginPassView.qml b/retroshare-qml-app/src/RsLoginPassView.qml index a72d2114d..2ea083ac2 100644 --- a/retroshare-qml-app/src/RsLoginPassView.qml +++ b/retroshare-qml-app/src/RsLoginPassView.qml @@ -19,6 +19,7 @@ import QtQuick 2.7 import QtQuick.Layouts 1.3 import QtQuick.Controls 2.0 +import "components/." Item { @@ -120,24 +121,32 @@ Item Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom spacing: 3 - Button + ButtonIcon { - text: qsTr("Advanced...") visible: !loginView.loginPreset onClicked: loginView.advancedMode = !loginView.advancedMode + imgUrl: "/icons/options.svg" + height: bottomButton.height - 5 + width: height + anchors.verticalCenter: bottomButton.verticalCenter } - Button + ButtonText { id: bottomButton text: loginView.buttonText onClicked: loginView.submit(nameField.text, passwordField.text) + iconUrl: "/icons/network.svg" + buttonTextPixelSize: 15 } - Button + ButtonIcon { id: cancelButton - text: loginView.cancelText onClicked: loginView.cancel() + height: bottomButton.height - 5 + width: height + imgUrl: "/icons/back.png" + anchors.verticalCenter: bottomButton.verticalCenter } } }