mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-23 19:15:56 +00:00
mobile layout tweaks
This commit is contained in:
parent
bfafd7b279
commit
4775a5b74d
5 changed files with 10 additions and 8 deletions
|
@ -89,7 +89,7 @@ Item {
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font.pixelSize: 24 * scaleRatio
|
font.pixelSize: 18 * scaleRatio
|
||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
color: "#555555"
|
color: "#555555"
|
||||||
}
|
}
|
||||||
|
@ -165,7 +165,7 @@ Item {
|
||||||
shadowPressedColor: "#B32D00"
|
shadowPressedColor: "#B32D00"
|
||||||
releasedColor: "#FF6C3C"
|
releasedColor: "#FF6C3C"
|
||||||
pressedColor: "#FF4304"
|
pressedColor: "#FF4304"
|
||||||
text: qsTr("Ok")
|
text: qsTr("Continue")
|
||||||
KeyNavigation.tab: cancelButton
|
KeyNavigation.tab: cancelButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.close()
|
root.close()
|
||||||
|
|
|
@ -43,7 +43,7 @@ Item {
|
||||||
signal clicked()
|
signal clicked()
|
||||||
|
|
||||||
// Dynamic label width
|
// Dynamic label width
|
||||||
Layout.minimumWidth: (label.contentWidth + 10 * scaleRatio) // (label.contentWidth > 80)? label.contentWidth + 20 : 100
|
Layout.minimumWidth: (label.contentWidth > 50)? label.contentWidth + 10 : 60
|
||||||
|
|
||||||
function doClick() {
|
function doClick() {
|
||||||
// Android workaround
|
// Android workaround
|
||||||
|
|
|
@ -97,7 +97,7 @@ Rectangle {
|
||||||
Label {
|
Label {
|
||||||
id: dialogTitle
|
id: dialogTitle
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font.pixelSize: 32 * scaleRatio
|
font.pixelSize: 18 * scaleRatio
|
||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
color: "#555555"
|
color: "#555555"
|
||||||
}
|
}
|
||||||
|
@ -114,6 +114,7 @@ Rectangle {
|
||||||
readOnly: true
|
readOnly: true
|
||||||
font.pixelSize: 12 * scaleRatio
|
font.pixelSize: 12 * scaleRatio
|
||||||
selectByMouse: false
|
selectByMouse: false
|
||||||
|
wrapMode: TextEdit.Wrap
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -156,7 +157,7 @@ Rectangle {
|
||||||
shadowPressedColor: "#B32D00"
|
shadowPressedColor: "#B32D00"
|
||||||
releasedColor: "#FF6C3C"
|
releasedColor: "#FF6C3C"
|
||||||
pressedColor: "#FF4304"
|
pressedColor: "#FF4304"
|
||||||
text: qsTr("Ok")
|
text: qsTr("OK")
|
||||||
KeyNavigation.tab: cancelButton
|
KeyNavigation.tab: cancelButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.close()
|
root.close()
|
||||||
|
|
5
main.qml
5
main.qml
|
@ -969,7 +969,7 @@ ApplicationWindow {
|
||||||
|
|
||||||
// Confrirmation aka question dialog
|
// Confrirmation aka question dialog
|
||||||
StandardDialog {
|
StandardDialog {
|
||||||
z:10
|
z: parent.z + 1
|
||||||
id: transactionConfirmationPopup
|
id: transactionConfirmationPopup
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
close();
|
close();
|
||||||
|
@ -996,8 +996,9 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
StandardDialog {
|
StandardDialog {
|
||||||
z:11
|
z: parent.z + 1
|
||||||
id: confirmationDialog
|
id: confirmationDialog
|
||||||
|
anchors.fill: parent
|
||||||
property var onAcceptedCallback
|
property var onAcceptedCallback
|
||||||
property var onRejectedCallback
|
property var onRejectedCallback
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
|
|
|
@ -53,7 +53,7 @@ Rectangle {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: qrfinderButton
|
id: qrfinderButton
|
||||||
text: qsTr("QRCODE") + translationManager.emptyString
|
text: qsTr("Qr Code") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
shadowReleasedColor: "#FF4304"
|
||||||
shadowPressedColor: "#B32D00"
|
shadowPressedColor: "#B32D00"
|
||||||
releasedColor: "#FF6C3C"
|
releasedColor: "#FF6C3C"
|
||||||
|
|
Loading…
Reference in a new issue