forked from Public/monero-gui
fix dynamic button width
This commit is contained in:
@@ -43,8 +43,8 @@ Item {
|
|||||||
signal clicked()
|
signal clicked()
|
||||||
|
|
||||||
// Dynamic label width
|
// Dynamic label width
|
||||||
width: label.contentWidth + 20
|
Layout.minimumWidth: (label.contentWidth > 100)? label.contentWidth + 20 : 100
|
||||||
Layout.minimumWidth: 100
|
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ Rectangle {
|
|||||||
RowLayout {
|
RowLayout {
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: closeWalletButton
|
id: closeWalletButton
|
||||||
width: 100
|
|
||||||
text: qsTr("Close wallet") + translationManager.emptyString
|
text: qsTr("Close wallet") + translationManager.emptyString
|
||||||
shadowReleasedColor: "#FF4304"
|
shadowReleasedColor: "#FF4304"
|
||||||
shadowPressedColor: "#B32D00"
|
shadowPressedColor: "#B32D00"
|
||||||
@@ -118,7 +117,6 @@ Rectangle {
|
|||||||
releasedColor: "#FF6C3C"
|
releasedColor: "#FF6C3C"
|
||||||
pressedColor: "#FF4304"
|
pressedColor: "#FF4304"
|
||||||
text: qsTr("Show seed") + translationManager.emptyString
|
text: qsTr("Show seed") + translationManager.emptyString
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
settingsPasswordDialog.open();
|
settingsPasswordDialog.open();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user