1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00

Add lodestone and mog station links to the bottom of the login page

This commit is contained in:
Joshua Goins 2024-03-22 20:53:38 -04:00
parent 6e1cf37ecc
commit 1ce2d2dc9c
2 changed files with 28 additions and 1 deletions

View file

@ -122,7 +122,6 @@ QQC2.Control {
visible: LauncherCore.profileManager.numProfiles > 1
Layout.fillWidth: true
Layout.fillHeight: true
FormCard.FormButtonDelegate {
id: currentProfileDelegate
@ -290,5 +289,32 @@ QQC2.Control {
onClicked: applicationWindow().openUrl('https://secure.square-enix.com/account/app/svc/reminder')
}
}
Item {
Layout.fillHeight: true
}
FormCard.FormCard {
maximumWidth: Kirigami.Units.gridUnit * 25
Layout.alignment: Qt.AlignBottom
FormCard.FormButtonDelegate {
text: i18nc("@action:button", "The Lodestone")
icon.name: "internet-services-symbolic"
visible: !LauncherCore.currentProfile.account.isSapphire
// TODO: how do we link to a "worldwide" lodestone, if that even exists?
onClicked: applicationWindow().openUrl('https://na.finalfantasyxiv.com/lodestone/')
}
FormCard.FormDelegateSeparator {}
FormCard.FormButtonDelegate {
text: i18nc("@action:button", "Mog Station")
icon.name: "internet-services-symbolic"
visible: !LauncherCore.currentProfile.account.isSapphire
onClicked: applicationWindow().openUrl('https://secure.square-enix.com/account/app/svc/mogstation/')
}
}
}
}

View file

@ -44,6 +44,7 @@ Kirigami.Page {
Layout.minimumWidth: LauncherCore.settings.showNews ? Kirigami.Units.gridUnit * 26 : 0
Layout.fillWidth: !LauncherCore.settings.showNews
Layout.topMargin: Kirigami.Units.largeSpacing
Layout.fillHeight: true
}
Kirigami.Separator {