mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-15 18:17:26 -04:00
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user