forked from Public/monero-gui
Fixes some fonts, introduces a new checkbox and fixes 0 amount history entries
This commit is contained in:
committed by
moneromooo-monero
parent
53b5b7a5c7
commit
4977049425
@@ -219,7 +219,6 @@ Rectangle {
|
||||
Layout.minimumWidth: 120 * scaleRatio
|
||||
text: qsTr("Sort") + translationManager.emptyString
|
||||
fontSize: 14
|
||||
fontBold: true
|
||||
}
|
||||
|
||||
ListModel {
|
||||
|
||||
@@ -31,73 +31,76 @@ import QtQuick.Controls 1.4
|
||||
import QtQuick.Controls.Styles 1.4
|
||||
import QtQuick.Layouts 1.1
|
||||
import QtQuick.Dialogs 1.2
|
||||
import "../version.js" as Version
|
||||
|
||||
|
||||
import "../components"
|
||||
import moneroComponents.Clipboard 1.0
|
||||
import "../version.js" as Version
|
||||
import "../components"
|
||||
import "." 1.0
|
||||
|
||||
|
||||
Rectangle {
|
||||
property bool viewOnly: false
|
||||
id: page
|
||||
|
||||
color: "#F0EEEE"
|
||||
color: "transparent"
|
||||
|
||||
Clipboard { id: clipboard }
|
||||
|
||||
ColumnLayout {
|
||||
id: mainLayout
|
||||
anchors.margins: 17 * scaleRatio
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
spacing: 20 * scaleRatio
|
||||
|
||||
anchors.margins: (isMobile)? 17 : 20
|
||||
anchors.topMargin: 40 * scaleRatio
|
||||
|
||||
spacing: 30 * scaleRatio
|
||||
Layout.fillWidth: true
|
||||
|
||||
//! Manage wallet
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
fontSize: 22 * scaleRatio
|
||||
Layout.topMargin: 10 * scaleRatio
|
||||
text: qsTr("Mnemonic seed") + translationManager.emptyString
|
||||
}
|
||||
Rectangle {
|
||||
Layout.fillWidth: true
|
||||
height: 1
|
||||
color: "#DEDEDE"
|
||||
height: 2
|
||||
color: Style.dividerColor
|
||||
opacity: Style.dividerOpacity
|
||||
Layout.bottomMargin: 10 * scaleRatio
|
||||
}
|
||||
TextEdit {
|
||||
|
||||
LineEditMulti{
|
||||
id: seedText
|
||||
wrapMode: TextEdit.Wrap
|
||||
Layout.fillWidth: true;
|
||||
font.pixelSize: 14 * scaleRatio
|
||||
spacing: 0
|
||||
copyButton: true
|
||||
addressValidation: false
|
||||
readOnly: true
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
appWindow.showStatusMessage(qsTr("Double tap to copy"),3)
|
||||
}
|
||||
onDoubleClicked: {
|
||||
parent.selectAll()
|
||||
parent.copy()
|
||||
parent.deselect()
|
||||
console.log("copied to clipboard");
|
||||
appWindow.showStatusMessage(qsTr("Seed copied to clipboard"),3)
|
||||
}
|
||||
}
|
||||
wrapAnywhere: false
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
fontSize: 22 * scaleRatio
|
||||
Layout.topMargin: 10 * scaleRatio
|
||||
text: qsTr("Keys") + translationManager.emptyString
|
||||
}
|
||||
Rectangle {
|
||||
Layout.fillWidth: true
|
||||
height: 1
|
||||
color: "#DEDEDE"
|
||||
height: 2
|
||||
color: Style.dividerColor
|
||||
opacity: Style.dividerOpacity
|
||||
Layout.bottomMargin: 10 * scaleRatio
|
||||
}
|
||||
TextEdit {
|
||||
id: keysText
|
||||
@@ -106,6 +109,7 @@ Rectangle {
|
||||
font.pixelSize: 14 * scaleRatio
|
||||
textFormat: TextEdit.RichText
|
||||
readOnly: true
|
||||
color: Style.defaultFontColor
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
@@ -124,21 +128,26 @@ Rectangle {
|
||||
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
fontSize: 22 * scaleRatio
|
||||
Layout.topMargin: 10 * scaleRatio
|
||||
text: qsTr("Export wallet") + translationManager.emptyString
|
||||
}
|
||||
Rectangle {
|
||||
Layout.fillWidth: true
|
||||
height: 1
|
||||
color: "#DEDEDE"
|
||||
height: 2
|
||||
color: Style.dividerColor
|
||||
opacity: Style.dividerOpacity
|
||||
Layout.bottomMargin: 10 * scaleRatio
|
||||
}
|
||||
|
||||
|
||||
RowLayout {
|
||||
StandardButton {
|
||||
enabled: !fullWalletQRCode.visible
|
||||
id: showFullQr
|
||||
small: true
|
||||
text: qsTr("Spendable Wallet") + translationManager.emptyString
|
||||
onClicked: {
|
||||
viewOnlyQRCode.visible = false
|
||||
@@ -147,6 +156,7 @@ Rectangle {
|
||||
StandardButton {
|
||||
enabled: fullWalletQRCode.visible
|
||||
id: showViewOnlyQr
|
||||
small: true
|
||||
text: qsTr("View Only Wallet") + translationManager.emptyString
|
||||
onClicked: {
|
||||
viewOnlyQRCode.visible = true
|
||||
@@ -155,7 +165,6 @@ Rectangle {
|
||||
Layout.bottomMargin: 30 * scaleRatio
|
||||
}
|
||||
|
||||
|
||||
Image {
|
||||
visible: !viewOnlyQRCode.visible
|
||||
id: fullWalletQRCode
|
||||
|
||||
@@ -34,7 +34,7 @@ import moneroComponents.Wallet 1.0
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
color: "#F0EEEE"
|
||||
color: "transparent"
|
||||
property var currentHashRate: 0
|
||||
|
||||
/* main layout */
|
||||
@@ -74,13 +74,16 @@ Rectangle {
|
||||
text: qsTr("Mining with your computer helps strengthen the Monero network. The more that people mine, the harder it is for the network to be attacked, and every little bit helps.<br> <br>Mining also gives you a small chance to earn some Monero. Your computer will create hashes looking for block solutions. If you find a block, you will get the associated reward. Good luck!") + translationManager.emptyString
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
font.family: Style.fontRegular
|
||||
font.pixelSize: 14 * scaleRatio
|
||||
color: Style.defaultFontColor
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
id: soloMinerThreadsRow
|
||||
Label {
|
||||
id: soloMinerThreadsLabel
|
||||
color: "#4A4949"
|
||||
color: Style.defaultFontColor
|
||||
text: qsTr("CPU threads") + translationManager.emptyString
|
||||
fontSize: 16
|
||||
Layout.preferredWidth: 120
|
||||
@@ -122,7 +125,7 @@ Rectangle {
|
||||
RowLayout {
|
||||
Label {
|
||||
id: manageSoloMinerLabel
|
||||
color: "#4A4949"
|
||||
color: Style.defaultFontColor
|
||||
text: qsTr("Manage miner") + translationManager.emptyString
|
||||
fontSize: 16
|
||||
}
|
||||
@@ -165,6 +168,7 @@ Rectangle {
|
||||
Text {
|
||||
id: statusText
|
||||
text: qsTr("Status: not mining")
|
||||
color: Style.defaultFontColor
|
||||
textFormat: Text.RichText
|
||||
wrapMode: Text.Wrap
|
||||
}
|
||||
|
||||
@@ -239,6 +239,9 @@ Rectangle {
|
||||
Layout.minimumWidth: 100 * scaleRatio
|
||||
daemonAddrLabelText: qsTr("Address")
|
||||
daemonPortLabelText: qsTr("Port")
|
||||
lineEditBackgroundColor: "transparent"
|
||||
lineEditFontColor: "white"
|
||||
lineEditBorderColor: Qt.rgba(255, 255, 255, 0.35)
|
||||
daemonAddrText: persistentSettings.remoteNodeAddress.split(":")[0].trim()
|
||||
daemonPortText: (persistentSettings.remoteNodeAddress.split(":")[1].trim() == "") ? "18081" : persistentSettings.remoteNodeAddress.split(":")[1]
|
||||
onEditingFinished: {
|
||||
|
||||
@@ -120,7 +120,7 @@ Rectangle {
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
|
||||
spacing: 26 * scaleRatio
|
||||
spacing: 30 * scaleRatio
|
||||
|
||||
GridLayout {
|
||||
columns: (isMobile)? 1 : 2
|
||||
@@ -160,8 +160,9 @@ Rectangle {
|
||||
Layout.fillWidth: true
|
||||
Label {
|
||||
id: transactionPriority
|
||||
Layout.topMargin: 14
|
||||
text: qsTr("Transaction priority") + translationManager.emptyString
|
||||
fontBold: true
|
||||
fontBold: false
|
||||
fontSize: 14
|
||||
}
|
||||
// Note: workaround for translations in listElements
|
||||
@@ -185,6 +186,7 @@ Rectangle {
|
||||
StandardDropdown {
|
||||
Layout.fillWidth: true
|
||||
id: priorityDropdown
|
||||
Layout.topMargin: 6
|
||||
shadowReleasedColor: "#FF4304"
|
||||
shadowPressedColor: "#B32D00"
|
||||
releasedColor: "#363636"
|
||||
@@ -278,8 +280,7 @@ Rectangle {
|
||||
StandardButton {
|
||||
id: sendButton
|
||||
rightIcon: "../images/rightIcon.png"
|
||||
Layout.bottomMargin: 17 * scaleRatio
|
||||
Layout.topMargin: 17 * scaleRatio
|
||||
Layout.topMargin: 4 * scaleRatio
|
||||
text: qsTr("Send") + translationManager.emptyString
|
||||
enabled : !appWindow.viewOnly && pageRoot.checkInformation(amountLine.text, addressLine.text, paymentIdLine.text, appWindow.persistentSettings.testnet)
|
||||
onClicked: {
|
||||
@@ -317,7 +318,7 @@ Rectangle {
|
||||
} // pageRoot
|
||||
|
||||
Rectangle {
|
||||
id:desaturate
|
||||
id: desaturate
|
||||
color:"black"
|
||||
anchors.fill: parent
|
||||
opacity: 0.1
|
||||
@@ -329,18 +330,18 @@ Rectangle {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.margins: (isMobile)? 17 : 20
|
||||
anchors.topMargin: 40 * scaleRatio
|
||||
anchors.topMargin: 32 * scaleRatio
|
||||
spacing: 26 * scaleRatio
|
||||
enabled: !viewOnly || pageRoot.enabled
|
||||
|
||||
RowLayout {
|
||||
CheckBox {
|
||||
CheckBox2 {
|
||||
id: showAdvancedCheckbox
|
||||
checked: persistentSettings.transferShowAdvanced
|
||||
onClicked: {
|
||||
persistentSettings.transferShowAdvanced = !persistentSettings.transferShowAdvanced
|
||||
}
|
||||
text: qsTr("Show advanced options") + translationManager.emptyString
|
||||
text: qsTr("Advanced options") + translationManager.emptyString
|
||||
}
|
||||
}
|
||||
|
||||
@@ -401,6 +402,7 @@ Rectangle {
|
||||
id: sweepUnmixableButton
|
||||
text: qsTr("Sweep Unmixable") + translationManager.emptyString
|
||||
enabled : pageRoot.enabled
|
||||
small: true
|
||||
onClicked: {
|
||||
console.log("Transfer: sweepUnmixableClicked")
|
||||
root.sweepUnmixableClicked()
|
||||
@@ -412,6 +414,7 @@ Rectangle {
|
||||
text: qsTr("Create tx file") + translationManager.emptyString
|
||||
visible: appWindow.viewOnly
|
||||
enabled: pageRoot.checkInformation(amountLine.text, addressLine.text, paymentIdLine.text, appWindow.persistentSettings.nettype)
|
||||
small: true
|
||||
onClicked: {
|
||||
console.log("Transfer: saveTx Clicked")
|
||||
var priority = priorityModelV5.get(priorityDropdown.currentIndex).priority
|
||||
@@ -428,6 +431,7 @@ Rectangle {
|
||||
StandardButton {
|
||||
id: signTxButton
|
||||
text: qsTr("Sign tx file") + translationManager.emptyString
|
||||
small: true
|
||||
visible: !appWindow.viewOnly
|
||||
onClicked: {
|
||||
console.log("Transfer: sign tx clicked")
|
||||
@@ -438,6 +442,7 @@ Rectangle {
|
||||
StandardButton {
|
||||
id: submitTxButton
|
||||
text: qsTr("Submit tx file") + translationManager.emptyString
|
||||
small: true
|
||||
visible: appWindow.viewOnly
|
||||
enabled: pageRoot.enabled
|
||||
onClicked: {
|
||||
@@ -446,12 +451,8 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//SignTxDialog
|
||||
FileDialog {
|
||||
id: signTxDialog
|
||||
|
||||
Reference in New Issue
Block a user