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

80 lines
2.8 KiB
QML
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
2024-12-29 09:46:21 -05:00
import QtQml
2023-09-16 18:15:11 -04:00
import org.kde.kirigamiaddons.settings as KirigamiSettings
import org.kde.kirigami as Kirigami
import org.kde.kirigamiaddons.components as KirigamiComponents
2023-09-16 18:37:50 -04:00
import zone.xiv.astra
2023-08-19 10:49:00 -04:00
KirigamiSettings.CategorizedSettings {
id: settingsPage
KirigamiComponents.FloatingButton {
anchors {
right: parent.right
bottom: parent.bottom
}
z: 100
margins: Kirigami.Units.largeSpacing
visible: LauncherCore.isSteamDeck
action: Kirigami.Action {
2024-03-22 21:03:34 -04:00
text: i18nc("@action:button", "Close Settings")
icon.name: "dialog-close-symbolic"
onTriggered: pageStack.layers.pop()
}
}
2023-08-19 10:49:00 -04:00
actions: [
KirigamiSettings.SettingAction {
actionName: "general"
text: i18n("General")
icon.name: "zone.xiv.astra"
2023-09-16 17:41:51 -04:00
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/GeneralSettings.qml")
2023-08-19 10:49:00 -04:00
},
KirigamiSettings.SettingAction {
actionName: "profiles"
text: i18n("Profiles")
icon.name: "applications-games-symbolic"
2023-09-16 17:41:51 -04:00
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/ProfilesPage.qml")
2023-08-19 10:49:00 -04:00
},
KirigamiSettings.SettingAction {
actionName: "accounts"
text: i18n("Accounts")
icon.name: "preferences-system-users-symbolic"
2023-09-16 17:41:51 -04:00
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/AccountsPage.qml")
2023-08-19 10:49:00 -04:00
},
2024-07-28 11:17:30 -04:00
KirigamiSettings.SettingAction {
actionName: "sync"
text: i18n("Synchronization")
2024-07-28 11:17:30 -04:00
icon.name: "state-sync-symbolic"
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/SyncSettings.qml")
visible: LauncherCore.supportsSync()
2024-07-28 11:17:30 -04:00
},
2023-08-19 10:49:00 -04:00
KirigamiSettings.SettingAction {
actionName: "compattool"
text: i18n("Compatibility Tool")
icon.name: "system-run-symbolic"
2023-09-16 17:41:51 -04:00
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/CompatibilityToolSetup.qml")
visible: !LauncherCore.isWindows
2023-08-19 10:49:00 -04:00
},
KirigamiSettings.SettingAction {
actionName: "devtool"
text: i18n("Developer Settings")
icon.name: "preferences-others-symbolic"
2023-09-16 17:41:51 -04:00
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/DeveloperSettings.qml")
visible: LauncherCore.config.showDevTools
2023-08-19 10:49:00 -04:00
},
KirigamiSettings.SettingAction {
actionName: "about"
text: i18n("About Astra")
icon.name: "help-about-symbolic"
2023-09-16 17:41:51 -04:00
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/AboutPage.qml")
}
2023-08-19 10:49:00 -04:00
]
}