From 1ce2d2dc9cf31f23e69a720a31fe0f7381af2c99 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 22 Mar 2024 20:53:38 -0400 Subject: [PATCH] Add lodestone and mog station links to the bottom of the login page --- launcher/ui/Pages/LoginPage.qml | 28 +++++++++++++++++++++++++++- launcher/ui/Pages/MainPage.qml | 1 + 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/launcher/ui/Pages/LoginPage.qml b/launcher/ui/Pages/LoginPage.qml index 82a82e0..20b8f71 100644 --- a/launcher/ui/Pages/LoginPage.qml +++ b/launcher/ui/Pages/LoginPage.qml @@ -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/') + } + } } } \ No newline at end of file diff --git a/launcher/ui/Pages/MainPage.qml b/launcher/ui/Pages/MainPage.qml index d1ec4f3..e71da44 100644 --- a/launcher/ui/Pages/MainPage.qml +++ b/launcher/ui/Pages/MainPage.qml @@ -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 {