mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
Switch OK/Cancel button positions
As per conventions, the 'OK' button should be rightmost.
This commit is contained in:
parent
c9bb2f5718
commit
77c37633aa
1 changed files with 16 additions and 19 deletions
|
@ -101,7 +101,6 @@ Window {
|
||||||
root.accepted()
|
root.accepted()
|
||||||
root.close()
|
root.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onEscapePressed: {
|
Keys.onEscapePressed: {
|
||||||
root.rejected()
|
root.rejected()
|
||||||
root.close()
|
root.close()
|
||||||
|
@ -132,23 +131,7 @@ Window {
|
||||||
id: buttons
|
id: buttons
|
||||||
spacing: 60
|
spacing: 60
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
MoneroComponents.StandardButton {
|
|
||||||
id: okButton
|
|
||||||
width: 120
|
|
||||||
fontSize: 14
|
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Ok")
|
|
||||||
KeyNavigation.tab: cancelButton
|
|
||||||
onClicked: {
|
|
||||||
root.accepted()
|
|
||||||
root.close()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
id: cancelButton
|
id: cancelButton
|
||||||
width: 120
|
width: 120
|
||||||
|
@ -164,9 +147,23 @@ Window {
|
||||||
root.close()
|
root.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
MoneroComponents.StandardButton {
|
||||||
|
id: okButton
|
||||||
|
width: 120
|
||||||
|
fontSize: 14
|
||||||
|
shadowReleasedColor: "#FF4304"
|
||||||
|
shadowPressedColor: "#B32D00"
|
||||||
|
releasedColor: "#FF6C3C"
|
||||||
|
pressedColor: "#FF4304"
|
||||||
|
text: qsTr("Ok")
|
||||||
|
KeyNavigation.tab: cancelButton
|
||||||
|
onClicked: {
|
||||||
|
root.accepted()
|
||||||
|
root.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue