diff options
| author | xiphon <xiphon@protonmail.com> | 2020-11-04 02:07:54 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-11-04 02:10:37 +0000 |
| commit | 8b9580d621696a1358e109e46314aad1dd62f076 (patch) | |
| tree | 22b3e5ebfea8a6f46f29ba84e9c9affa11f67ea7 /wizard | |
| parent | 04429e85e6ccedee455eaf3b3b50fbecc6d9a083 (diff) | |
| download | monzero-gui-8b9580d621696a1358e109e46314aad1dd62f076.tar.gz monzero-gui-8b9580d621696a1358e109e46314aad1dd62f076.tar.xz monzero-gui-8b9580d621696a1358e109e46314aad1dd62f076.zip | |
WizardHome: display icon + language instead of change language button
Co-authored-by: rating89us <45968869+rating89us@users.noreply.github.com>
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardHome.qml | 52 |
1 files changed, 39 insertions, 13 deletions
diff --git a/wizard/WizardHome.qml b/wizard/WizardHome.qml index a7cb8834..81d27bec 100644 --- a/wizard/WizardHome.qml +++ b/wizard/WizardHome.qml @@ -30,6 +30,7 @@ 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 @@ -56,10 +57,44 @@ Rectangle { Layout.alignment: Qt.AlignHCenter spacing: 0 - WizardHeader { - Layout.bottomMargin: 20 - title: qsTr("Welcome to Monero") + translationManager.emptyString - subtitle: "" + RowLayout { + Layout.fillWidth: true + spacing: 10 + + WizardHeader { + Layout.bottomMargin: 7 + Layout.fillWidth: true + title: qsTr("Welcome to Monero") + translationManager.emptyString + subtitle: "" + } + + RowLayout { + 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() + } + } } WizardMenuItem { @@ -147,15 +182,6 @@ Rectangle { wizardController.wizardState = 'wizardModeSelection'; } } - - MoneroComponents.StandardButton { - small: true - text: qsTr("Change language") + translationManager.emptyString - - onClicked: { - appWindow.toggleLanguageView(); - } - } } MoneroComponents.CheckBox2 { |
