magpie/qml/Welcome.qml

49 lines
1.1 KiB
QML
Raw Normal View History

2023-11-24 23:48:01 +00:00
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Page {
property string serverAddress
signal pickServer(address: string)
title: qsTr("Welcome")
Column {
anchors.centerIn: parent
spacing: 10
Label {
anchors.horizontalCenter: parent.horizontalCenter
2023-12-03 21:34:16 +00:00
text: qsTr("Welcome to Magpie!")
2023-11-24 23:48:01 +00:00
font {
pixelSize: 22
bold: true
}
}
Row {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 5
Label {
horizontalAlignment: Label.AlignRight
text: qsTr("Current server:")
}
Label {
horizontalAlignment: Label.AlignLeft
text: serverAddress || qsTr("choose")
font {
italic: true
underline: true
}
MouseArea {
anchors.fill: parent
onClicked: pickServer(serverAddress)
}
}
}
}
}