diff options
| author | xiphon <xiphon@protonmail.com> | 2020-11-04 03:00:34 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-11-04 03:10:02 +0000 |
| commit | 919b2e4f3a53e1235c221f2c3c84055dd3250fad (patch) | |
| tree | 55cd3d449dcc95ba50a303f28414b958c528b5f8 /wizard | |
| parent | 8b9580d621696a1358e109e46314aad1dd62f076 (diff) | |
| download | monzero-gui-919b2e4f3a53e1235c221f2c3c84055dd3250fad.tar.gz monzero-gui-919b2e4f3a53e1235c221f2c3c84055dd3250fad.tar.xz monzero-gui-919b2e4f3a53e1235c221f2c3c84055dd3250fad.zip | |
WizardLanguage: introduce LanguageButton component, replace the btn
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardHome.qml | 27 | ||||
| -rw-r--r-- | wizard/WizardLanguage.qml | 10 |
2 files changed, 2 insertions, 35 deletions
diff --git a/wizard/WizardHome.qml b/wizard/WizardHome.qml index 81d27bec..84b62f3e 100644 --- a/wizard/WizardHome.qml +++ b/wizard/WizardHome.qml @@ -30,7 +30,6 @@ import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 -import FontAwesome 1.0 import moneroComponents.NetworkType 1.0 import "../components" as MoneroComponents @@ -68,32 +67,8 @@ Rectangle { subtitle: "" } - RowLayout { + MoneroComponents.LanguageButton { Layout.bottomMargin: 8 - opacity: mouseArea.containsMouse ? 1 : 0.85 - spacing: 10 - - MoneroComponents.Label { - Layout.bottomMargin: 5 - fontColor: MoneroComponents.Style.defaultFontColor - fontFamily: FontAwesome.fontFamilySolid - fontSize: 26 - styleName: "Solid" - text: FontAwesome.language - } - - MoneroComponents.TextPlain { - font.pixelSize: 14 - text: wizard.language_language - } - - MouseArea { - id: mouseArea - anchors.fill: parent - cursorShape: Qt.PointingHandCursor - hoverEnabled: true - onClicked: appWindow.toggleLanguageView() - } } } diff --git a/wizard/WizardLanguage.qml b/wizard/WizardLanguage.qml index 4aa04ba0..3f7ce3b9 100644 --- a/wizard/WizardLanguage.qml +++ b/wizard/WizardLanguage.qml @@ -152,15 +152,7 @@ Rectangle { Layout.fillWidth: true columnSpacing: 20 - MoneroComponents.StandardButton { - id: idChangeLang - Layout.minimumWidth: 150 - text: qsTr("Language") + translationManager.emptyString - - onClicked: { - appWindow.toggleLanguageView(); - } - } + MoneroComponents.LanguageButton { } MoneroComponents.StandardButton { id: btnContinue |
