WizardLanguage: introduce LanguageButton component, replace the btn

This commit is contained in:
xiphon
2020-11-04 03:00:34 +00:00
parent 8b9580d621
commit 919b2e4f3a
4 changed files with 70 additions and 35 deletions

View File

@@ -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()
}
}
}

View File

@@ -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