2023-07-30 08:49:34 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-09-16 18:15:11 -04:00
|
|
|
import org.kde.kirigamiaddons.settings as KirigamiSettings
|
2024-03-22 18:51:31 -04:00
|
|
|
import org.kde.kirigami as Kirigami
|
|
|
|
import org.kde.kirigamiaddons.components as KirigamiComponents
|
2023-07-30 08:49:34 -04:00
|
|
|
|
2023-09-16 18:37:50 -04:00
|
|
|
import zone.xiv.astra
|
|
|
|
|
2023-08-19 10:49:00 -04:00
|
|
|
KirigamiSettings.CategorizedSettings {
|
|
|
|
id: settingsPage
|
|
|
|
|
2024-03-22 18:51:31 -04:00
|
|
|
KirigamiComponents.FloatingButton {
|
|
|
|
anchors {
|
|
|
|
right: parent.right
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
|
|
|
|
|
|
|
z: 100
|
|
|
|
margins: Kirigami.Units.largeSpacing
|
|
|
|
visible: LauncherCore.isSteamDeck
|
|
|
|
|
|
|
|
action: Kirigami.Action {
|
|
|
|
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: "preferences-desktop-gaming"
|
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"
|
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
|
|
|
},
|
|
|
|
KirigamiSettings.SettingAction {
|
|
|
|
actionName: "compattool"
|
|
|
|
text: i18n("Compatibility Tool")
|
|
|
|
icon.name: "system-run"
|
2023-09-16 17:41:51 -04:00
|
|
|
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/CompatibilityToolSetup.qml")
|
2023-08-19 10:49:00 -04:00
|
|
|
},
|
|
|
|
KirigamiSettings.SettingAction {
|
|
|
|
actionName: "devtool"
|
2023-08-19 10:30:52 -04:00
|
|
|
text: i18n("Developer Settings")
|
2023-08-19 10:49:00 -04:00
|
|
|
icon.name: "preferences-others"
|
2023-09-16 17:41:51 -04:00
|
|
|
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/DeveloperSettings.qml")
|
2023-10-11 13:25:24 -04:00
|
|
|
visible: LauncherCore.settings.showDevTools
|
2023-08-19 10:49:00 -04:00
|
|
|
},
|
|
|
|
KirigamiSettings.SettingAction {
|
|
|
|
actionName: "about"
|
2023-08-19 10:30:52 -04:00
|
|
|
text: i18n("About Astra")
|
2023-08-19 10:49:00 -04:00
|
|
|
icon.name: "help-about"
|
2023-09-16 17:41:51 -04:00
|
|
|
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/AboutPage.qml")
|
2023-07-30 08:49:34 -04:00
|
|
|
}
|
2023-08-19 10:49:00 -04:00
|
|
|
]
|
|
|
|
}
|