mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-21 03:45:53 +01:00
mobile layout tweaks
This commit is contained in:
parent
bfafd7b279
commit
4775a5b74d
@ -89,7 +89,7 @@ Item {
|
||||
Layout.columnSpan: 2
|
||||
Layout.fillWidth: true
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
font.pixelSize: 24 * scaleRatio
|
||||
font.pixelSize: 18 * scaleRatio
|
||||
font.family: "Arial"
|
||||
color: "#555555"
|
||||
}
|
||||
@ -165,7 +165,7 @@ Item {
|
||||
shadowPressedColor: "#B32D00"
|
||||
releasedColor: "#FF6C3C"
|
||||
pressedColor: "#FF4304"
|
||||
text: qsTr("Ok")
|
||||
text: qsTr("Continue")
|
||||
KeyNavigation.tab: cancelButton
|
||||
onClicked: {
|
||||
root.close()
|
||||
|
@ -43,7 +43,7 @@ Item {
|
||||
signal clicked()
|
||||
|
||||
// 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() {
|
||||
// Android workaround
|
||||
|
@ -97,7 +97,7 @@ Rectangle {
|
||||
Label {
|
||||
id: dialogTitle
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
font.pixelSize: 32 * scaleRatio
|
||||
font.pixelSize: 18 * scaleRatio
|
||||
font.family: "Arial"
|
||||
color: "#555555"
|
||||
}
|
||||
@ -114,6 +114,7 @@ Rectangle {
|
||||
readOnly: true
|
||||
font.pixelSize: 12 * scaleRatio
|
||||
selectByMouse: false
|
||||
wrapMode: TextEdit.Wrap
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
@ -156,7 +157,7 @@ Rectangle {
|
||||
shadowPressedColor: "#B32D00"
|
||||
releasedColor: "#FF6C3C"
|
||||
pressedColor: "#FF4304"
|
||||
text: qsTr("Ok")
|
||||
text: qsTr("OK")
|
||||
KeyNavigation.tab: cancelButton
|
||||
onClicked: {
|
||||
root.close()
|
||||
|
5
main.qml
5
main.qml
@ -969,7 +969,7 @@ ApplicationWindow {
|
||||
|
||||
// Confrirmation aka question dialog
|
||||
StandardDialog {
|
||||
z:10
|
||||
z: parent.z + 1
|
||||
id: transactionConfirmationPopup
|
||||
onAccepted: {
|
||||
close();
|
||||
@ -996,8 +996,9 @@ ApplicationWindow {
|
||||
}
|
||||
|
||||
StandardDialog {
|
||||
z:11
|
||||
z: parent.z + 1
|
||||
id: confirmationDialog
|
||||
anchors.fill: parent
|
||||
property var onAcceptedCallback
|
||||
property var onRejectedCallback
|
||||
onAccepted: {
|
||||
|
@ -53,7 +53,7 @@ Rectangle {
|
||||
RowLayout {
|
||||
StandardButton {
|
||||
id: qrfinderButton
|
||||
text: qsTr("QRCODE") + translationManager.emptyString
|
||||
text: qsTr("Qr Code") + translationManager.emptyString
|
||||
shadowReleasedColor: "#FF4304"
|
||||
shadowPressedColor: "#B32D00"
|
||||
releasedColor: "#FF6C3C"
|
||||
|
Loading…
Reference in New Issue
Block a user