mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
StandardButton - removed unused properties and some layout changes to settings page
This commit is contained in:
parent
0477af1b0d
commit
be9cb8931c
@ -110,10 +110,6 @@ Window {
|
|||||||
id: okButton
|
id: okButton
|
||||||
width: 120
|
width: 120
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Close") + translationManager.emptyString
|
text: qsTr("Close") + translationManager.emptyString
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.close()
|
root.close()
|
||||||
@ -138,10 +134,6 @@ Window {
|
|||||||
// id: sendCommandButton
|
// id: sendCommandButton
|
||||||
// enabled: sendCommandText.text.length > 0
|
// enabled: sendCommandText.text.length > 0
|
||||||
// fontSize: 14
|
// fontSize: 14
|
||||||
// shadowReleasedColor: "#FF4304"
|
|
||||||
// shadowPressedColor: "#B32D00"
|
|
||||||
// releasedColor: "#FF6C3C"
|
|
||||||
// pressedColor: "#FF4304"
|
|
||||||
// text: qsTr("Send command")
|
// text: qsTr("Send command")
|
||||||
// onClicked: {
|
// onClicked: {
|
||||||
// daemonManager.sendCommand(sendCommandText.text,currentWallet.testnet);
|
// daemonManager.sendCommand(sendCommandText.text,currentWallet.testnet);
|
||||||
|
@ -108,10 +108,6 @@ Window {
|
|||||||
id: okButton
|
id: okButton
|
||||||
visible:false
|
visible:false
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Start daemon (%1)").arg(countDown)
|
text: qsTr("Start daemon (%1)").arg(countDown)
|
||||||
KeyNavigation.tab: cancelButton
|
KeyNavigation.tab: cancelButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@ -125,10 +121,6 @@ Window {
|
|||||||
MoneroComponents.StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
id: cancelButton
|
id: cancelButton
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Use custom settings")
|
text: qsTr("Use custom settings")
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -92,10 +92,6 @@ Item {
|
|||||||
StandardButton {
|
StandardButton {
|
||||||
id: button
|
id: button
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
shadowReleasedColor: "#DBDBDB"
|
|
||||||
shadowPressedColor: "#888888"
|
|
||||||
releasedColor: "#F0EEEE"
|
|
||||||
pressedColor: "#DBDBDB"
|
|
||||||
icon: "../images/datePicker.png"
|
icon: "../images/datePicker.png"
|
||||||
visible: !datePicker.expanded
|
visible: !datePicker.expanded
|
||||||
onClicked: datePicker.expanded = true
|
onClicked: datePicker.expanded = true
|
||||||
|
@ -96,10 +96,6 @@ ListView {
|
|||||||
anchors.topMargin: parent.height/2 - this.height/2
|
anchors.topMargin: parent.height/2 - this.height/2
|
||||||
width: 80
|
width: 80
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Details")
|
text: qsTr("Details")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var tx_key = currentWallet.getTxKey(hash)
|
var tx_key = currentWallet.getTxKey(hash)
|
||||||
|
@ -149,10 +149,6 @@ Item {
|
|||||||
|
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
id: cancelButton
|
id: cancelButton
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Cancel") + translationManager.emptyString
|
text: qsTr("Cancel") + translationManager.emptyString
|
||||||
KeyNavigation.tab: passwordInput
|
KeyNavigation.tab: passwordInput
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@ -162,10 +158,6 @@ Item {
|
|||||||
}
|
}
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
id: okButton
|
id: okButton
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Continue")
|
text: qsTr("Continue")
|
||||||
KeyNavigation.tab: cancelButton
|
KeyNavigation.tab: cancelButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -33,9 +33,12 @@ import QtQuick.Layouts 1.1
|
|||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
columns: (isMobile) ? 1 : 2
|
columns: (isMobile) ? 1 : 2
|
||||||
|
columnSpacing: 32
|
||||||
id: root
|
id: root
|
||||||
property alias daemonAddrText: daemonAddr.text
|
property alias daemonAddrText: daemonAddr.text
|
||||||
property alias daemonPortText: daemonPort.text
|
property alias daemonPortText: daemonPort.text
|
||||||
|
property alias daemonAddrLabelText: daemonAddr.labelText
|
||||||
|
property alias daemonPortLabelText: daemonPort.labelText
|
||||||
|
|
||||||
signal editingFinished()
|
signal editingFinished()
|
||||||
|
|
||||||
@ -50,7 +53,6 @@ GridLayout {
|
|||||||
onEditingFinished: root.editingFinished()
|
onEditingFinished: root.editingFinished()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LineEdit {
|
LineEdit {
|
||||||
id: daemonPort
|
id: daemonPort
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -33,10 +33,6 @@ import "." 1.0
|
|||||||
Item {
|
Item {
|
||||||
id: button
|
id: button
|
||||||
height: 37 * scaleRatio
|
height: 37 * scaleRatio
|
||||||
property string shadowPressedColor: Style.buttonBackgroundColor
|
|
||||||
property string shadowReleasedColor: Style.buttonBackgroundColor
|
|
||||||
property string pressedColor: Style.buttonBackgroundColor
|
|
||||||
property string releasedColor: Style.buttonBackgroundColor
|
|
||||||
property string icon: ""
|
property string icon: ""
|
||||||
property string textColor: button.enabled? Style.buttonTextColor: Style.buttonTextColorDisabled
|
property string textColor: button.enabled? Style.buttonTextColor: Style.buttonTextColorDisabled
|
||||||
property int fontSize: 16 * scaleRatio
|
property int fontSize: 16 * scaleRatio
|
||||||
@ -57,8 +53,8 @@ Item {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
height: parent.height - 1
|
height: parent.height - 1
|
||||||
radius: 3
|
radius: 3
|
||||||
|
// color: parent.enabled ? Style.buttonBackgroundColor : Style.buttonBackgroundColorDisabled
|
||||||
color: parent.enabled ? Style.buttonBackgroundColor : Style.buttonBackgroundColorDisabled
|
color: parent.enabled ? Style.buttonBackgroundColor : Style.buttonBackgroundColorDisabled
|
||||||
border.color: Qt.darker(parent.releasedColor)
|
|
||||||
border.width: parent.focus ? 1 : 0
|
border.width: parent.focus ? 1 : 0
|
||||||
|
|
||||||
MouseArea{
|
MouseArea{
|
||||||
@ -68,32 +64,18 @@ Item {
|
|||||||
|
|
||||||
propagateComposedEvents: true
|
propagateComposedEvents: true
|
||||||
|
|
||||||
|
// possibly do some hover effects here
|
||||||
onEntered: {
|
onEntered: {
|
||||||
if(button.enabled) parent.color = Style.buttonBackgroundColorHover;
|
// if(button.enabled) parent.color = Style.buttonBackgroundColorHover;
|
||||||
else parent.color = Style.buttonBackgroundColorDisabledHover;
|
// else parent.color = Style.buttonBackgroundColorDisabledHover;
|
||||||
}
|
}
|
||||||
onExited: {
|
onExited: {
|
||||||
if(button.enabled) parent.color = Style.buttonBackgroundColor;
|
// if(button.enabled) parent.color = Style.buttonBackgroundColor;
|
||||||
else parent.color = Style.buttonBackgroundColorDisabled;
|
// else parent.color = Style.buttonBackgroundColorDisabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rectangle {
|
|
||||||
// anchors.left: parent.left
|
|
||||||
// anchors.right: parent.right
|
|
||||||
// height: parent.height - 1
|
|
||||||
// y: buttonArea.pressed ? 1 : 0
|
|
||||||
// color: {
|
|
||||||
// parent.enabled ? (buttonArea.pressed ? parent.pressedColor : parent.releasedColor)
|
|
||||||
// : Qt.lighter(parent.releasedColor)
|
|
||||||
|
|
||||||
// }
|
|
||||||
// //radius: 4
|
|
||||||
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: label
|
id: label
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
@ -105,7 +87,6 @@ Item {
|
|||||||
font.pixelSize: buttonArea.pressed ? button.fontSize - 1 : button.fontSize
|
font.pixelSize: buttonArea.pressed ? button.fontSize - 1 : button.fontSize
|
||||||
color: parent.textColor
|
color: parent.textColor
|
||||||
visible: parent.icon === ""
|
visible: parent.icon === ""
|
||||||
// font.capitalization : Font.Capitalize
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
@ -118,6 +99,7 @@ Item {
|
|||||||
id: buttonArea
|
id: buttonArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: doClick()
|
onClicked: doClick()
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onSpacePressed: doClick()
|
Keys.onSpacePressed: doClick()
|
||||||
|
@ -140,10 +140,6 @@ Rectangle {
|
|||||||
|
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
id: cancelButton
|
id: cancelButton
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Cancel") + translationManager.emptyString
|
text: qsTr("Cancel") + translationManager.emptyString
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.close()
|
root.close()
|
||||||
@ -153,10 +149,6 @@ Rectangle {
|
|||||||
|
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
id: okButton
|
id: okButton
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("OK")
|
text: qsTr("OK")
|
||||||
KeyNavigation.tab: cancelButton
|
KeyNavigation.tab: cancelButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -48,10 +48,6 @@ Rectangle {
|
|||||||
StandardButton {
|
StandardButton {
|
||||||
id: qrfinderButton
|
id: qrfinderButton
|
||||||
text: qsTr("Qr Code") + translationManager.emptyString
|
text: qsTr("Qr Code") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
visible : appWindow.qrScannerEnabled
|
visible : appWindow.qrScannerEnabled
|
||||||
enabled : visible
|
enabled : visible
|
||||||
width: visible ? 60 * scaleRatio : 0
|
width: visible ? 60 * scaleRatio : 0
|
||||||
@ -91,10 +87,6 @@ Rectangle {
|
|||||||
id: addButton
|
id: addButton
|
||||||
Layout.bottomMargin: 17 * scaleRatio
|
Layout.bottomMargin: 17 * scaleRatio
|
||||||
StandardButton {
|
StandardButton {
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Add") + translationManager.emptyString
|
text: qsTr("Add") + translationManager.emptyString
|
||||||
enabled: checkInformation(addressLine.text, paymentIdLine.text, appWindow.persistentSettings.nettype)
|
enabled: checkInformation(addressLine.text, paymentIdLine.text, appWindow.persistentSettings.nettype)
|
||||||
|
|
||||||
|
@ -250,10 +250,6 @@ Rectangle {
|
|||||||
anchors.leftMargin: 17
|
anchors.leftMargin: 17
|
||||||
width: 60
|
width: 60
|
||||||
text: qsTr("Filter") + translationManager.emptyString
|
text: qsTr("Filter") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#4D0051"
|
|
||||||
shadowPressedColor: "#2D002F"
|
|
||||||
releasedColor: "#6B0072"
|
|
||||||
pressedColor: "#4D0051"
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
// Apply filter here;
|
// Apply filter here;
|
||||||
|
|
||||||
|
@ -133,10 +133,6 @@ Rectangle {
|
|||||||
id: startSoloMinerButton
|
id: startSoloMinerButton
|
||||||
width: 110
|
width: 110
|
||||||
text: qsTr("Start mining") + translationManager.emptyString
|
text: qsTr("Start mining") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var success = walletManager.startMining(appWindow.currentWallet.address(0, 0), soloMinerThreadsLine.text, persistentSettings.allow_background_mining, persistentSettings.miningIgnoreBattery)
|
var success = walletManager.startMining(appWindow.currentWallet.address(0, 0), soloMinerThreadsLine.text, persistentSettings.allow_background_mining, persistentSettings.miningIgnoreBattery)
|
||||||
if (success) {
|
if (success) {
|
||||||
@ -158,10 +154,6 @@ Rectangle {
|
|||||||
id: stopSoloMinerButton
|
id: stopSoloMinerButton
|
||||||
width: 110
|
width: 110
|
||||||
text: qsTr("Stop mining") + translationManager.emptyString
|
text: qsTr("Stop mining") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
walletManager.stopMining()
|
walletManager.stopMining()
|
||||||
update()
|
update()
|
||||||
|
@ -404,18 +404,28 @@ Rectangle {
|
|||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
visible: persistentSettings.useRemoteNode
|
visible: persistentSettings.useRemoteNode
|
||||||
ColumnLayout{
|
ColumnLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
RemoteNodeEdit {
|
RemoteNodeEdit {
|
||||||
id: remoteNodeEdit
|
id: remoteNodeEdit
|
||||||
Layout.minimumWidth: 100 * scaleRatio
|
Layout.minimumWidth: 100 * scaleRatio
|
||||||
property var rna: persistentSettings.remoteNodeAddress
|
property var rna: persistentSettings.remoteNodeAddress
|
||||||
daemonAddrText: rna.search(":") != -1 ? rna.split(":")[0].trim() : ""
|
daemonAddrText: rna.search(":") != -1 ? rna.split(":")[0].trim() : ""
|
||||||
daemonPortText: rna.search(":") != -1 ? (rna.split(":")[1].trim() == "") ? "18081" : rna.split(":")[1] : ""
|
daemonPortText: rna.search(":") != -1 ? (rna.split(":")[1].trim() == "") ? "18081" : rna.split(":")[1] : ""
|
||||||
|
daemonAddrLabelText: qsTr("Address")
|
||||||
|
daemonPortLabelText: qsTr("Port")
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
persistentSettings.remoteNodeAddress = remoteNodeEdit.getAddress();
|
persistentSettings.remoteNodeAddress = remoteNodeEdit.getAddress();
|
||||||
console.log("setting remote node to " + persistentSettings.remoteNodeAddress)
|
console.log("setting remote node to " + persistentSettings.remoteNodeAddress)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
RowLayout{
|
||||||
|
visible: persistentSettings.useRemoteNode
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: remoteNodeSave
|
id: remoteNodeSave
|
||||||
@ -433,7 +443,6 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
visible: !isMobile
|
visible: !isMobile
|
||||||
|
@ -143,10 +143,6 @@ Rectangle {
|
|||||||
id: signMessageButton
|
id: signMessageButton
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
text: qsTr("Sign") + translationManager.emptyString
|
text: qsTr("Sign") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: true
|
enabled: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var signature = appWindow.currentWallet.signMessage(signMessageLine.text, false)
|
var signature = appWindow.currentWallet.signMessage(signMessageLine.text, false)
|
||||||
@ -181,10 +177,6 @@ Rectangle {
|
|||||||
id: loadFileToSignButton
|
id: loadFileToSignButton
|
||||||
anchors.rightMargin: 17 * scaleRatio
|
anchors.rightMargin: 17 * scaleRatio
|
||||||
text: qsTr("Select") + translationManager.emptyString
|
text: qsTr("Select") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: true
|
enabled: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
signFileDialog.open()
|
signFileDialog.open()
|
||||||
@ -213,10 +205,6 @@ Rectangle {
|
|||||||
id: signFileButton
|
id: signFileButton
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
text: qsTr("Sign") + translationManager.emptyString
|
text: qsTr("Sign") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: true
|
enabled: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var signature = appWindow.currentWallet.signMessage(signFileLine.text, true)
|
var signature = appWindow.currentWallet.signMessage(signFileLine.text, true)
|
||||||
@ -300,10 +288,6 @@ Rectangle {
|
|||||||
id: verifyMessageButton
|
id: verifyMessageButton
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
text: qsTr("Verify") + translationManager.emptyString
|
text: qsTr("Verify") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: true
|
enabled: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var verified = appWindow.currentWallet.verifySignedMessage(verifyMessageLine.text, verifyAddressLine.text, verifySignatureLine.text, false)
|
var verified = appWindow.currentWallet.verifySignedMessage(verifyMessageLine.text, verifyAddressLine.text, verifySignatureLine.text, false)
|
||||||
@ -338,10 +322,6 @@ Rectangle {
|
|||||||
id: loadFileToVerifyButton
|
id: loadFileToVerifyButton
|
||||||
anchors.rightMargin: 17 * scaleRatio
|
anchors.rightMargin: 17 * scaleRatio
|
||||||
text: qsTr("Select") + translationManager.emptyString
|
text: qsTr("Select") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: true
|
enabled: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
verifyFileDialog.open()
|
verifyFileDialog.open()
|
||||||
@ -369,10 +349,6 @@ Rectangle {
|
|||||||
id: verifyFileButton
|
id: verifyFileButton
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
text: qsTr("Verify") + translationManager.emptyString
|
text: qsTr("Verify") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: true
|
enabled: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var verified = appWindow.currentWallet.verifySignedMessage(verifyFileLine.text, verifyAddressLine.text, verifySignatureLine.text, true)
|
var verified = appWindow.currentWallet.verifySignedMessage(verifyFileLine.text, verifyAddressLine.text, verifySignatureLine.text, true)
|
||||||
|
@ -436,10 +436,6 @@ Rectangle {
|
|||||||
StandardButton {
|
StandardButton {
|
||||||
id: submitTxButton
|
id: submitTxButton
|
||||||
text: qsTr("Submit tx file") + translationManager.emptyString
|
text: qsTr("Submit tx file") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
visible: appWindow.viewOnly
|
visible: appWindow.viewOnly
|
||||||
enabled: pageRoot.enabled
|
enabled: pageRoot.enabled
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -324,11 +324,7 @@ Rectangle {
|
|||||||
anchors.topMargin: 17
|
anchors.topMargin: 17
|
||||||
width: 60
|
width: 60
|
||||||
text: qsTr("Check") + translationManager.emptyString
|
text: qsTr("Check") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
enabled: checkTxID(checkProofTxIdLine.text) && checkSignature(checkProofSignatureLine.text) && ((checkProofSignatureLine.text.indexOf("SpendProofV") === 0 && checkProofAddressLine.text.length == 0) || (checkProofSignatureLine.text.indexOf("SpendProofV") !== 0 && checkAddress(checkProofAddressLine.text, appWindow.persistentSettings.testnet)))
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: checkTxID(checkProofTxIdLine.text) && checkSignature(checkProofSignatureLine.text) && ((checkProofSignatureLine.text.indexOf("SpendProofV") === 0 && checkProofAddressLine.text.length == 0) || (checkProofSignatureLine.text.indexOf("SpendProofV") !== 0 && checkAddress(checkProofAddressLine.text, appWindow.persistentSettings.nettype)))
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
console.log("checkProof: Check clicked: txid " + checkProofTxIdLine.text + ", address " + checkProofAddressLine.text + ", message " + checkProofMessageLine.text + ", signature " + checkProofSignatureLine.text);
|
console.log("checkProof: Check clicked: txid " + checkProofTxIdLine.text + ", address " + checkProofAddressLine.text + ", message " + checkProofMessageLine.text + ", signature " + checkProofSignatureLine.text);
|
||||||
root.checkProofClicked(checkProofTxIdLine.text, checkProofAddressLine.text, checkProofMessageLine.text, checkProofSignatureLine.text)
|
root.checkProofClicked(checkProofTxIdLine.text, checkProofAddressLine.text, checkProofMessageLine.text, checkProofSignatureLine.text)
|
||||||
|
@ -365,10 +365,6 @@ ColumnLayout {
|
|||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.margins: (isMobile) ? 20 * scaleRatio : 50 * scaleRatio
|
anchors.margins: (isMobile) ? 20 * scaleRatio : 50 * scaleRatio
|
||||||
text: qsTr("USE MONERO") + translationManager.emptyString
|
text: qsTr("USE MONERO") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
visible: parent.paths[currentPath][currentPage] === finishPage
|
visible: parent.paths[currentPath][currentPage] === finishPage
|
||||||
onClicked: {
|
onClicked: {
|
||||||
wizard.applySettings();
|
wizard.applySettings();
|
||||||
@ -382,10 +378,6 @@ ColumnLayout {
|
|||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.margins: (isMobile) ? 20 * scaleRatio : 50
|
anchors.margins: (isMobile) ? 20 * scaleRatio : 50
|
||||||
text: qsTr("Create wallet") + translationManager.emptyString
|
text: qsTr("Create wallet") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
visible: currentPath === "create_view_only_wallet" && parent.paths[currentPath][currentPage] === passwordPage
|
visible: currentPath === "create_view_only_wallet" && parent.paths[currentPath][currentPage] === passwordPage
|
||||||
enabled: passwordPage.passwordsMatch
|
enabled: passwordPage.passwordsMatch
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@ -414,10 +406,6 @@ ColumnLayout {
|
|||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.margins: (isMobile) ? 20 * scaleRatio : 50
|
anchors.margins: (isMobile) ? 20 * scaleRatio : 50
|
||||||
text: qsTr("Abort") + translationManager.emptyString
|
text: qsTr("Abort") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
visible: currentPath === "create_view_only_wallet" && parent.paths[currentPath][currentPage] === passwordPage
|
visible: currentPath === "create_view_only_wallet" && parent.paths[currentPath][currentPage] === passwordPage
|
||||||
onClicked: {
|
onClicked: {
|
||||||
wizard.restart();
|
wizard.restart();
|
||||||
|
@ -176,10 +176,6 @@ ColumnLayout {
|
|||||||
StandardButton {
|
StandardButton {
|
||||||
id: recoverFromSeedButton
|
id: recoverFromSeedButton
|
||||||
text: qsTr("Restore from seed") + translationManager.emptyString
|
text: qsTr("Restore from seed") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: recoverFromKeys.visible
|
enabled: recoverFromKeys.visible
|
||||||
onClicked: {
|
onClicked: {
|
||||||
recoverFromSeedMode = true;
|
recoverFromSeedMode = true;
|
||||||
@ -190,10 +186,6 @@ ColumnLayout {
|
|||||||
StandardButton {
|
StandardButton {
|
||||||
id: recoverFromKeysButton
|
id: recoverFromKeysButton
|
||||||
text: qsTr("Restore from keys") + translationManager.emptyString
|
text: qsTr("Restore from keys") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: recoverFromSeed.visible
|
enabled: recoverFromSeed.visible
|
||||||
onClicked: {
|
onClicked: {
|
||||||
recoverFromSeedMode = false;
|
recoverFromSeedMode = false;
|
||||||
@ -204,10 +196,6 @@ ColumnLayout {
|
|||||||
StandardButton {
|
StandardButton {
|
||||||
id: qrfinderButton
|
id: qrfinderButton
|
||||||
text: qsTr("From QR Code") + translationManager.emptyString
|
text: qsTr("From QR Code") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
visible : true //appWindow.qrScannerEnabled
|
visible : true //appWindow.qrScannerEnabled
|
||||||
enabled : visible
|
enabled : visible
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
Loading…
Reference in New Issue
Block a user