diff options
| author | xiphon <xiphon@protonmail.com> | 2020-12-24 08:05:14 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-12-24 08:20:38 +0000 |
| commit | ba4d6993b78a3a0e7c0d0b0f09ab071b1bb5e447 (patch) | |
| tree | 0d8c1abb14863f854c5aed5991ae391f2efc53bc /wizard | |
| parent | fed00a5662dcbc77c928a06778d7c9001e7d90f9 (diff) | |
| download | monzero-gui-ba4d6993b78a3a0e7c0d0b0f09ab071b1bb5e447.tar.gz monzero-gui-ba4d6993b78a3a0e7c0d0b0f09ab071b1bb5e447.tar.xz monzero-gui-ba4d6993b78a3a0e7c0d0b0f09ab071b1bb5e447.zip | |
LineEdit: fix padding, fix inline buttons layout, multiple btns support
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardDaemonSettings.qml | 17 | ||||
| -rw-r--r-- | wizard/WizardWalletInput.qml | 17 |
2 files changed, 20 insertions, 14 deletions
diff --git a/wizard/WizardDaemonSettings.qml b/wizard/WizardDaemonSettings.qml index 7155db10..3f1f2204 100644 --- a/wizard/WizardDaemonSettings.qml +++ b/wizard/WizardDaemonSettings.qml @@ -81,13 +81,16 @@ ColumnLayout { placeholderText: qsTr("Default") + translationManager.emptyString placeholderFontSize: 15 text: persistentSettings.blockchainDataDir - inlineButton.small: true - inlineButtonText: qsTr("Browse") + translationManager.emptyString - inlineButton.onClicked: { - if(persistentSettings.blockchainDataDir != ""); - blockchainFileDialog.folder = "file://" + persistentSettings.blockchainDataDir; - blockchainFileDialog.open(); - blockchainFolder.focus = true; + + MoneroComponents.InlineButton { + small: true + text: qsTr("Browse") + translationManager.emptyString + onClicked: { + if(persistentSettings.blockchainDataDir != ""); + blockchainFileDialog.folder = "file://" + persistentSettings.blockchainDataDir; + blockchainFileDialog.open(); + blockchainFolder.focus = true; + } } } diff --git a/wizard/WizardWalletInput.qml b/wizard/WizardWalletInput.qml index 5b2f3b69..e754a4f1 100644 --- a/wizard/WizardWalletInput.qml +++ b/wizard/WizardWalletInput.qml @@ -89,16 +89,19 @@ GridLayout { placeholderText: "..." placeholderFontSize: 16 text: appWindow.accountsDir + "/" - inlineButton.small: true - inlineButtonText: qsTr("Browse") + translationManager.emptyString - inlineButton.onClicked: { - fileWalletDialog.folder = walletManager.localPathToUrl(walletLocation.text) - fileWalletDialog.open() - walletLocation.focus = true - } onTextChanged: { walletLocation.error = walletLocation.text === ""; } + + MoneroComponents.InlineButton { + small: true + text: qsTr("Browse") + translationManager.emptyString + onClicked: { + fileWalletDialog.folder = walletManager.localPathToUrl(walletLocation.text) + fileWalletDialog.open() + walletLocation.focus = true + } + } } FileDialog { |
