2023-07-30 09:14:22 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Window 2.15
|
|
|
|
import org.kde.kirigami 2.20 as Kirigami
|
|
|
|
import QtQuick.Controls 2.15 as Controls
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import org.kde.kirigamiaddons.labs.mobileform 0.1 as MobileForm
|
|
|
|
import com.redstrate.astra 1.0
|
|
|
|
|
|
|
|
Kirigami.Page {
|
|
|
|
id: page
|
|
|
|
|
2023-07-31 19:03:15 -04:00
|
|
|
padding: 0
|
|
|
|
|
|
|
|
title: i18n("Home")
|
|
|
|
|
|
|
|
actions.contextualActions: Kirigami.Action {
|
|
|
|
text: i18n("Settings")
|
|
|
|
icon.name: "configure"
|
|
|
|
onTriggered: applicationWindow().pushDialogLayer('qrc:/ui/Settings/SettingsPage.qml')
|
|
|
|
}
|
|
|
|
|
|
|
|
actions.right: Kirigami.Action {
|
|
|
|
text: i18n("Server Status")
|
|
|
|
icon.name: "cloudstatus"
|
|
|
|
onTriggered: applicationWindow().openUrl('https://na.finalfantasyxiv.com/lodestone/worldstatus/')
|
|
|
|
}
|
|
|
|
|
|
|
|
actions.main: Kirigami.Action {
|
|
|
|
text: i18n("Tools")
|
|
|
|
icon.name: "tools-symbolic"
|
|
|
|
|
|
|
|
Kirigami.Action {
|
|
|
|
text: i18n("Open Official Launcher")
|
|
|
|
icon.name: "application-x-executable"
|
|
|
|
onTriggered: LauncherCore.openOfficialLauncher(loginPage.profile)
|
|
|
|
}
|
|
|
|
|
|
|
|
Kirigami.Action {
|
|
|
|
text: i18n("Open System Info")
|
|
|
|
icon.name: "application-x-executable"
|
|
|
|
onTriggered: LauncherCore.openSystemInfo(loginPage.profile)
|
|
|
|
}
|
|
|
|
|
|
|
|
Kirigami.Action {
|
|
|
|
text: i18n("Open Config Backup")
|
|
|
|
icon.name: "application-x-executable"
|
|
|
|
onTriggered: LauncherCore.openConfigBackup(loginPage.profile)
|
|
|
|
}
|
|
|
|
}
|
2023-07-30 09:14:22 -04:00
|
|
|
|
|
|
|
RowLayout {
|
2023-07-31 19:03:15 -04:00
|
|
|
anchors.fill: parent
|
2023-07-30 09:14:22 -04:00
|
|
|
|
2023-07-31 19:03:15 -04:00
|
|
|
Loader {
|
|
|
|
active: LauncherCore.showNews
|
2023-07-30 09:14:22 -04:00
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
|
2023-07-31 19:03:15 -04:00
|
|
|
sourceComponent: Controls.ScrollView {
|
|
|
|
id: scrollView
|
|
|
|
|
|
|
|
NewsPage {
|
|
|
|
width: scrollView.availableWidth
|
|
|
|
height: scrollView.availableHeight
|
|
|
|
}
|
2023-07-30 09:14:22 -04:00
|
|
|
}
|
|
|
|
}
|
2023-07-31 19:03:15 -04:00
|
|
|
|
2023-07-30 09:14:22 -04:00
|
|
|
LoginPage {
|
2023-07-31 19:03:15 -04:00
|
|
|
id: loginPage
|
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
|
|
|
Layout.minimumWidth: LauncherCore.showNews ? Kirigami.Units.gridUnit * 25 : undefined
|
2023-07-30 09:14:22 -04:00
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|