mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
SettingsInfo: use MoneroComponents.StandardButton 💄
This commit is contained in:
parent
59fc48bd8b
commit
d10ce1744c
1 changed files with 32 additions and 61 deletions
|
@ -37,7 +37,7 @@ import "../../components" as MoneroComponents
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
height: 1400
|
height: 1400 * scaleRatio
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
@ -48,19 +48,19 @@ Rectangle {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.margins: (isMobile)? 17 : 20
|
anchors.margins: (isMobile)? 17 : 20
|
||||||
anchors.topMargin: 0
|
anchors.topMargin: 0
|
||||||
spacing: 30
|
spacing: 30 * scaleRatio
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
columns: 2
|
columns: 2
|
||||||
columnSpacing: 0
|
columnSpacing: 0
|
||||||
|
|
||||||
MoneroComponents.TextBlock {
|
MoneroComponents.TextBlock {
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
text: qsTr("GUI version: ") + translationManager.emptyString
|
text: qsTr("GUI version: ") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.TextBlock {
|
MoneroComponents.TextBlock {
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
text: Version.GUI_VERSION + " (Qt " + qtRuntimeVersion + ")" + translationManager.emptyString
|
text: Version.GUI_VERSION + " (Qt " + qtRuntimeVersion + ")" + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,12 +84,12 @@ Rectangle {
|
||||||
|
|
||||||
MoneroComponents.TextBlock {
|
MoneroComponents.TextBlock {
|
||||||
id: guiMoneroVersion
|
id: guiMoneroVersion
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
text: qsTr("Embedded Monero version: ") + translationManager.emptyString
|
text: qsTr("Embedded Monero version: ") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.TextBlock {
|
MoneroComponents.TextBlock {
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
text: Version.GUI_MONERO_VERSION + translationManager.emptyString
|
text: Version.GUI_MONERO_VERSION + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,14 +113,14 @@ Rectangle {
|
||||||
|
|
||||||
MoneroComponents.TextBlock {
|
MoneroComponents.TextBlock {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
text: qsTr("Wallet path: ") + translationManager.emptyString
|
text: qsTr("Wallet path: ") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.TextBlock {
|
MoneroComponents.TextBlock {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: 360
|
Layout.maximumWidth: 360 * scaleRatio
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
text: {
|
text: {
|
||||||
var wallet_path = walletPath();
|
var wallet_path = walletPath();
|
||||||
if(isIOS)
|
if(isIOS)
|
||||||
|
@ -149,7 +149,7 @@ Rectangle {
|
||||||
|
|
||||||
MoneroComponents.TextBlock {
|
MoneroComponents.TextBlock {
|
||||||
id: restoreHeight
|
id: restoreHeight
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
text: (typeof currentWallet == "undefined") ? "" : qsTr("Wallet creation height: ") + translationManager.emptyString
|
text: (typeof currentWallet == "undefined") ? "" : qsTr("Wallet creation height: ") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,7 @@ Rectangle {
|
||||||
id: restoreHeightText
|
id: restoreHeightText
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
font.bold: true
|
font.bold: true
|
||||||
property var style: "<style type='text/css'>a {cursor:pointer;text-decoration: none; color: #FF6C3C}</style>"
|
property var style: "<style type='text/css'>a {cursor:pointer;text-decoration: none; color: #FF6C3C}</style>"
|
||||||
text: (currentWallet ? currentWallet.walletCreationHeight : "") + style + qsTr(" <a href='#'> (Click to change)</a>") + translationManager.emptyString
|
text: (currentWallet ? currentWallet.walletCreationHeight : "") + style + qsTr(" <a href='#'> (Click to change)</a>") + translationManager.emptyString
|
||||||
|
@ -230,44 +230,21 @@ Rectangle {
|
||||||
|
|
||||||
MoneroComponents.TextBlock {
|
MoneroComponents.TextBlock {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
text: qsTr("Wallet log path: ") + translationManager.emptyString
|
text: qsTr("Wallet log path: ") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.TextBlock {
|
MoneroComponents.TextBlock {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14 * scaleRatio
|
||||||
text: walletLogPath
|
text: walletLogPath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy info to clipboard
|
// Copy info to clipboard
|
||||||
Rectangle {
|
MoneroComponents.StandardButton {
|
||||||
color: "transparent"
|
small: true
|
||||||
Layout.preferredHeight: 24 * scaleRatio
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
id: rectCopy
|
|
||||||
color: MoneroComponents.Style.buttonBackgroundColorDisabled
|
|
||||||
width: btnCopy.width + 40
|
|
||||||
height: 24
|
|
||||||
radius: 2
|
|
||||||
|
|
||||||
Text {
|
|
||||||
id: btnCopy
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
|
||||||
font.pixelSize: 14 * scaleRatio
|
|
||||||
font.bold: true
|
|
||||||
text: qsTr("Copy to clipboard") + translationManager.emptyString
|
text: qsTr("Copy to clipboard") + translationManager.emptyString
|
||||||
}
|
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
anchors.fill: parent
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var data = "";
|
var data = "";
|
||||||
data += "GUI version: " + Version.GUI_VERSION + " (Qt " + qtRuntimeVersion + ")";
|
data += "GUI version: " + Version.GUI_VERSION + " (Qt " + qtRuntimeVersion + ")";
|
||||||
|
@ -291,10 +268,4 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue