WizardHome: display icon + language instead of change language button

Co-authored-by: rating89us <45968869+rating89us@users.noreply.github.com>
This commit is contained in:
xiphon 2020-11-04 02:07:54 +00:00
parent 04429e85e6
commit 8b9580d621

View file

@ -30,6 +30,7 @@ import QtQuick 2.9
import QtQuick.Dialogs 1.2 import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.2 import QtQuick.Layouts 1.2
import QtQuick.Controls 2.0 import QtQuick.Controls 2.0
import FontAwesome 1.0
import moneroComponents.NetworkType 1.0 import moneroComponents.NetworkType 1.0
import "../components" as MoneroComponents import "../components" as MoneroComponents
@ -56,12 +57,46 @@ Rectangle {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
spacing: 0 spacing: 0
RowLayout {
Layout.fillWidth: true
spacing: 10
WizardHeader { WizardHeader {
Layout.bottomMargin: 20 Layout.bottomMargin: 7
Layout.fillWidth: true
title: qsTr("Welcome to Monero") + translationManager.emptyString title: qsTr("Welcome to Monero") + translationManager.emptyString
subtitle: "" 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 { WizardMenuItem {
headerText: qsTr("Create a new wallet") + translationManager.emptyString headerText: qsTr("Create a new wallet") + translationManager.emptyString
bodyText: qsTr("Choose this option if this is your first time using Monero.") + translationManager.emptyString bodyText: qsTr("Choose this option if this is your first time using Monero.") + translationManager.emptyString
@ -147,15 +182,6 @@ Rectangle {
wizardController.wizardState = 'wizardModeSelection'; wizardController.wizardState = 'wizardModeSelection';
} }
} }
MoneroComponents.StandardButton {
small: true
text: qsTr("Change language") + translationManager.emptyString
onClicked: {
appWindow.toggleLanguageView();
}
}
} }
MoneroComponents.CheckBox2 { MoneroComponents.CheckBox2 {