forked from Public/monero-gui
WizardLanguage: introduce LanguageButton component, replace the btn
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user