67 lines
1.8 KiB
QML
67 lines
1.8 KiB
QML
|
// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
|
||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
||
|
import QtQuick
|
||
|
import QtQuick.Controls as QQC2
|
||
|
import QtQuick.Layouts
|
||
|
import QtQuick.Effects
|
||
|
|
||
|
import org.kde.kirigami as Kirigami
|
||
|
import org.kde.kirigamiaddons.formcard as FormCard
|
||
|
|
||
|
import com.redstrate.sukai
|
||
|
|
||
|
Kirigami.Page {
|
||
|
id: root
|
||
|
|
||
|
globalToolBarStyle: Kirigami.ApplicationHeaderStyle.None
|
||
|
|
||
|
header: Kirigami.Separator {
|
||
|
width: root.width
|
||
|
}
|
||
|
|
||
|
contentItem: Item {
|
||
|
ColumnLayout {
|
||
|
anchors {
|
||
|
left: parent.left
|
||
|
right: parent.right
|
||
|
verticalCenter: parent.verticalCenter
|
||
|
}
|
||
|
|
||
|
spacing: Kirigami.Units.largeSpacing
|
||
|
|
||
|
Kirigami.Heading {
|
||
|
text: i18nc("@info", "Sukai")
|
||
|
level: 1
|
||
|
horizontalAlignment: Text.AlignHCenter
|
||
|
font.bold: true
|
||
|
|
||
|
Layout.fillWidth: true
|
||
|
}
|
||
|
|
||
|
QQC2.Label {
|
||
|
text: i18nc("@info", "BlueSky client")
|
||
|
horizontalAlignment: Text.AlignHCenter
|
||
|
wrapMode: Text.WordWrap
|
||
|
|
||
|
Layout.fillWidth: true
|
||
|
Layout.alignment: Qt.AlignHCenter
|
||
|
Layout.maximumWidth: Kirigami.Units.gridUnit * 20
|
||
|
}
|
||
|
|
||
|
FormCard.FormCard {
|
||
|
Layout.topMargin: Kirigami.Units.largeSpacing
|
||
|
|
||
|
maximumWidth: Kirigami.Units.gridUnit * 20
|
||
|
|
||
|
FormCard.FormButtonDelegate {
|
||
|
id: loginButton
|
||
|
text: i18nc("@action:button", "Use an Existing Account")
|
||
|
icon.name: "user-symbolic"
|
||
|
onClicked: Window.window.pageStack.push(Qt.createComponent("qrc:/qt/qml/com/redstrate/sukai/ui/LoginPage.qml"))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|