mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Style buttons
This commit is contained in:
parent
753032e5e8
commit
03cd80f5ad
@ -30,7 +30,7 @@ Item
|
|||||||
property bool isOwn: cntDt.md.own
|
property bool isOwn: cntDt.md.own
|
||||||
property string objectName: "contactDetails"
|
property string objectName: "contactDetails"
|
||||||
|
|
||||||
Button
|
ButtonText
|
||||||
{
|
{
|
||||||
id: avatarPicker
|
id: avatarPicker
|
||||||
|
|
||||||
@ -40,6 +40,11 @@ Item
|
|||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
|
buttonTextPixelSize: 14
|
||||||
|
iconUrl: "/icons/attach-image.svg"
|
||||||
|
borderRadius: 0
|
||||||
|
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
fileChooser.open()
|
fileChooser.open()
|
||||||
@ -154,9 +159,11 @@ Item
|
|||||||
|
|
||||||
spacing: 6
|
spacing: 6
|
||||||
|
|
||||||
Button
|
ButtonText
|
||||||
{
|
{
|
||||||
text: qsTr("Contact full link")
|
text: qsTr("Contact full link")
|
||||||
|
borderRadius: 0
|
||||||
|
buttonTextPixelSize: 14
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
rsApi.request(
|
rsApi.request(
|
||||||
@ -182,10 +189,12 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button
|
ButtonText
|
||||||
{
|
{
|
||||||
text: qsTr("Contact short link")
|
text: qsTr("Contact short link")
|
||||||
enabled: false
|
enabled: false
|
||||||
|
borderRadius: 0
|
||||||
|
buttonTextPixelSize: 14
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -199,6 +199,7 @@ Item
|
|||||||
onClicked: locationView.state = "createLocation"
|
onClicked: locationView.state = "createLocation"
|
||||||
buttonTextPixelSize: 15
|
buttonTextPixelSize: 15
|
||||||
iconUrl: "/icons/add.svg"
|
iconUrl: "/icons/add.svg"
|
||||||
|
borderRadius: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
RsLoginPassView
|
RsLoginPassView
|
||||||
|
@ -162,9 +162,14 @@ Item
|
|||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
spacing: 6
|
spacing: 6
|
||||||
|
|
||||||
Button
|
ButtonText
|
||||||
{
|
{
|
||||||
text: qsTr("Revoke")
|
text: qsTr("Revoke")
|
||||||
|
|
||||||
|
borderRadius: 0
|
||||||
|
buttonTextPixelSize: 14
|
||||||
|
iconUrl: "/icons/leave.svg"
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
rsApi.request(
|
rsApi.request(
|
||||||
"/peers/"+nodeDetailsRoot.pgpId+"/delete", "",
|
"/peers/"+nodeDetailsRoot.pgpId+"/delete", "",
|
||||||
@ -172,11 +177,16 @@ Item
|
|||||||
{ stackView.push("qrc:/TrustedNodesView.qml") })
|
{ stackView.push("qrc:/TrustedNodesView.qml") })
|
||||||
}
|
}
|
||||||
|
|
||||||
Button
|
ButtonText
|
||||||
{
|
{
|
||||||
text: qsTr("Entrust")
|
text: qsTr("Entrust")
|
||||||
|
|
||||||
visible: nodeDetailsRoot.nodeCert.length > 0
|
visible: nodeDetailsRoot.nodeCert.length > 0
|
||||||
|
|
||||||
|
borderRadius: 0
|
||||||
|
buttonTextPixelSize: 14
|
||||||
|
iconUrl: "/icons/invite.svg"
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
var jsonData =
|
var jsonData =
|
||||||
|
@ -20,6 +20,7 @@ import QtQuick 2.7
|
|||||||
import QtQuick.Controls 2.0
|
import QtQuick.Controls 2.0
|
||||||
import "jsonpath.js" as JSONPath
|
import "jsonpath.js" as JSONPath
|
||||||
import "." //Needed for TokensManager singleton
|
import "." //Needed for TokensManager singleton
|
||||||
|
import "components/."
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
@ -113,12 +114,17 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button
|
ButtonText
|
||||||
{
|
{
|
||||||
id: bottomButton
|
id: bottomButton
|
||||||
text: qsTr("Add Trusted Node")
|
text: qsTr("Add Trusted Node")
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
onClicked: stackView.push("qrc:/AddTrustedNode.qml")
|
onClicked: stackView.push("qrc:/AddTrustedNode.qml")
|
||||||
width: parent.width
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
// width: parent.width
|
||||||
|
|
||||||
|
borderRadius: 0
|
||||||
|
buttonTextPixelSize: 14
|
||||||
|
iconUrl: "/icons/add.svg"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user