mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 22:28:49 +03:00
69 lines
1.7 KiB
QML
69 lines
1.7 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.2
|
|
import QtQuick.Window 2.15
|
|
import im.nheko 1.0
|
|
import "../components/"
|
|
|
|
ColumnLayout {
|
|
Item {
|
|
Layout.fillHeight: true
|
|
}
|
|
|
|
Image {
|
|
Layout.alignment: Qt.AlignHCenter
|
|
source: "qrc:/logos/splash.png"
|
|
height: 256
|
|
width: 256
|
|
}
|
|
|
|
Label {
|
|
Layout.margins: Nheko.paddingLarge
|
|
Layout.bottomMargin: 0
|
|
Layout.alignment: Qt.AlignHCenter
|
|
Layout.fillWidth: true
|
|
text: qsTr("Welcome to nheko! The desktop client for the Matrix protocol.")
|
|
color: Nheko.colors.text
|
|
font.pointSize: fontMetrics.font.pointSize*2
|
|
wrapMode: Text.Wrap
|
|
horizontalAlignment: Text.AlignHCenter
|
|
}
|
|
Label {
|
|
Layout.margins: Nheko.paddingLarge
|
|
Layout.alignment: Qt.AlignHCenter
|
|
Layout.fillWidth: true
|
|
text: qsTr("Enjoy your stay!")
|
|
color: Nheko.colors.text
|
|
font.pointSize: fontMetrics.font.pointSize*1.5
|
|
wrapMode: Text.Wrap
|
|
horizontalAlignment: Text.AlignHCenter
|
|
}
|
|
|
|
RowLayout {
|
|
Item {
|
|
Layout.fillWidth: true
|
|
}
|
|
FlatButton {
|
|
Layout.margins: Nheko.paddingLarge
|
|
Layout.alignment: Qt.AlignHCenter
|
|
text: qsTr("REGISTER")
|
|
onClicked: {
|
|
mainWindow.push(registerPage);
|
|
}
|
|
}
|
|
FlatButton {
|
|
Layout.margins: Nheko.paddingLarge
|
|
Layout.alignment: Qt.AlignHCenter
|
|
text: qsTr("LOGIN")
|
|
onClicked: {
|
|
mainWindow.push(loginPage);
|
|
}
|
|
}
|
|
Item {
|
|
Layout.fillWidth: true
|
|
}
|
|
}
|
|
Item {
|
|
Layout.fillHeight: true
|
|
}
|
|
}
|