2022-01-29 19:30:56 +03:00
|
|
|
// SPDX-FileCopyrightText: 2022 Nheko Contributors
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2022-01-12 21:09:46 +03:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.2
|
|
|
|
import QtQuick.Window 2.15
|
2022-04-15 03:58:44 +03:00
|
|
|
import im.nheko
|
2022-04-16 03:13:01 +03:00
|
|
|
import "../components"
|
2022-01-12 21:09:46 +03:00
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
Item {
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
Image {
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
height: 256
|
2022-04-16 03:13:01 +03:00
|
|
|
source: "qrc:/logos/splash.png"
|
2022-01-12 21:09:46 +03:00
|
|
|
width: 256
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
2022-04-16 03:13:01 +03:00
|
|
|
Layout.bottomMargin: 0
|
2022-01-12 21:09:46 +03:00
|
|
|
Layout.fillWidth: true
|
2022-04-16 03:13:01 +03:00
|
|
|
Layout.margins: Nheko.paddingLarge
|
2022-04-11 05:18:16 +03:00
|
|
|
color: timelineRoot.palette.text
|
2022-04-16 03:13:01 +03:00
|
|
|
font.pointSize: fontMetrics.font.pointSize * 2
|
2022-01-12 21:09:46 +03:00
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2022-04-16 03:13:01 +03:00
|
|
|
text: qsTr("Welcome to nheko! The desktop client for the Matrix protocol.")
|
|
|
|
wrapMode: Text.Wrap
|
2022-01-12 21:09:46 +03:00
|
|
|
}
|
|
|
|
Label {
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
Layout.fillWidth: true
|
2022-04-16 03:13:01 +03:00
|
|
|
Layout.margins: Nheko.paddingLarge
|
2022-04-11 05:18:16 +03:00
|
|
|
color: timelineRoot.palette.text
|
2022-04-16 03:13:01 +03:00
|
|
|
font.pointSize: fontMetrics.font.pointSize * 1.5
|
2022-01-12 21:09:46 +03:00
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2022-04-16 03:13:01 +03:00
|
|
|
text: qsTr("Enjoy your stay!")
|
|
|
|
wrapMode: Text.Wrap
|
2022-01-12 21:09:46 +03:00
|
|
|
}
|
|
|
|
RowLayout {
|
2022-01-24 02:41:55 +03:00
|
|
|
Item {
|
|
|
|
Layout.fillWidth: true
|
2022-01-12 21:09:46 +03:00
|
|
|
}
|
2022-01-24 02:41:55 +03:00
|
|
|
FlatButton {
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
2022-04-16 03:13:01 +03:00
|
|
|
Layout.margins: Nheko.paddingLarge
|
2022-01-24 02:41:55 +03:00
|
|
|
text: qsTr("REGISTER")
|
2022-04-16 03:13:01 +03:00
|
|
|
|
2022-01-24 02:41:55 +03:00
|
|
|
onClicked: {
|
2022-01-28 17:24:56 +03:00
|
|
|
mainWindow.push(registerPage);
|
2022-01-24 02:41:55 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
FlatButton {
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
2022-04-16 03:13:01 +03:00
|
|
|
Layout.margins: Nheko.paddingLarge
|
2022-01-24 02:41:55 +03:00
|
|
|
text: qsTr("LOGIN")
|
2022-04-16 03:13:01 +03:00
|
|
|
|
2022-01-24 02:41:55 +03:00
|
|
|
onClicked: {
|
|
|
|
mainWindow.push(loginPage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Item {
|
|
|
|
Layout.fillWidth: true
|
2022-01-12 21:09:46 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
Item {
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
}
|