Style buttons

This commit is contained in:
Angela Mazzurco 2017-07-22 19:11:56 +02:00
parent 753032e5e8
commit 03cd80f5ad
4 changed files with 33 additions and 7 deletions

View File

@ -30,7 +30,7 @@ Item
property bool isOwn: cntDt.md.own
property string objectName: "contactDetails"
Button
ButtonText
{
id: avatarPicker
@ -40,6 +40,11 @@ Item
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
buttonTextPixelSize: 14
iconUrl: "/icons/attach-image.svg"
borderRadius: 0
onClicked:
{
fileChooser.open()
@ -154,9 +159,11 @@ Item
spacing: 6
Button
ButtonText
{
text: qsTr("Contact full link")
borderRadius: 0
buttonTextPixelSize: 14
onClicked:
{
rsApi.request(
@ -182,10 +189,12 @@ Item
}
}
Button
ButtonText
{
text: qsTr("Contact short link")
enabled: false
borderRadius: 0
buttonTextPixelSize: 14
}
}
}

View File

@ -199,6 +199,7 @@ Item
onClicked: locationView.state = "createLocation"
buttonTextPixelSize: 15
iconUrl: "/icons/add.svg"
borderRadius: 0
}
RsLoginPassView

View File

@ -162,9 +162,14 @@ Item
anchors.horizontalCenter: parent.horizontalCenter
spacing: 6
Button
ButtonText
{
text: qsTr("Revoke")
borderRadius: 0
buttonTextPixelSize: 14
iconUrl: "/icons/leave.svg"
onClicked:
rsApi.request(
"/peers/"+nodeDetailsRoot.pgpId+"/delete", "",
@ -172,11 +177,16 @@ Item
{ stackView.push("qrc:/TrustedNodesView.qml") })
}
Button
ButtonText
{
text: qsTr("Entrust")
visible: nodeDetailsRoot.nodeCert.length > 0
borderRadius: 0
buttonTextPixelSize: 14
iconUrl: "/icons/invite.svg"
onClicked:
{
var jsonData =

View File

@ -20,6 +20,7 @@ import QtQuick 2.7
import QtQuick.Controls 2.0
import "jsonpath.js" as JSONPath
import "." //Needed for TokensManager singleton
import "components/."
Item
{
@ -113,12 +114,17 @@ Item
}
}
Button
ButtonText
{
id: bottomButton
text: qsTr("Add Trusted Node")
anchors.bottom: parent.bottom
onClicked: stackView.push("qrc:/AddTrustedNode.qml")
width: parent.width
anchors.horizontalCenter: parent.horizontalCenter
// width: parent.width
borderRadius: 0
buttonTextPixelSize: 14
iconUrl: "/icons/add.svg"
}
}