2023-07-30 08:49:34 -04:00
|
|
|
// 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
|
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
|
|
|
|
|
2025-04-29 00:14:03 -04:00
|
|
|
KirigamiSettings.ConfigurationView {
|
2023-08-19 10:49:00 -04:00
|
|
|
id: settingsPage
|
|
|
|
|
2025-04-29 00:14:03 -04:00
|
|
|
modules: [
|
|
|
|
KirigamiSettings.ConfigurationModule {
|
|
|
|
moduleId: "general"
|
2023-08-19 10:49:00 -04:00
|
|
|
text: i18n("General")
|
|
|
|
icon.name: "zone.xiv.astra"
|
2025-04-29 00:14:03 -04:00
|
|
|
page: () => Qt.createComponent("zone.xiv.astra", "GeneralSettings")
|
2023-08-19 10:49:00 -04:00
|
|
|
},
|
2025-04-29 00:14:03 -04:00
|
|
|
KirigamiSettings.ConfigurationModule {
|
|
|
|
moduleId: "profiles"
|
2023-08-19 10:49:00 -04:00
|
|
|
text: i18n("Profiles")
|
2025-02-01 10:08:10 -05:00
|
|
|
icon.name: "applications-games-symbolic"
|
2025-04-29 00:14:03 -04:00
|
|
|
page: () => Qt.createComponent("zone.xiv.astra", "ProfilesPage")
|
2023-08-19 10:49:00 -04:00
|
|
|
},
|
2025-04-29 00:14:03 -04:00
|
|
|
KirigamiSettings.ConfigurationModule {
|
|
|
|
moduleId: "accounts"
|
2023-08-19 10:49:00 -04:00
|
|
|
text: i18n("Accounts")
|
2025-02-01 10:03:38 -05:00
|
|
|
icon.name: "preferences-system-users-symbolic"
|
2025-04-29 00:14:03 -04:00
|
|
|
page: () => Qt.createComponent("zone.xiv.astra", "AccountsPage")
|
2023-08-19 10:49:00 -04:00
|
|
|
},
|
2025-04-29 00:14:03 -04:00
|
|
|
KirigamiSettings.ConfigurationModule {
|
|
|
|
moduleId: "sync"
|
2025-02-01 10:03:38 -05:00
|
|
|
text: i18n("Synchronization")
|
2024-07-28 11:17:30 -04:00
|
|
|
icon.name: "state-sync-symbolic"
|
2025-04-29 00:14:03 -04:00
|
|
|
page: () => Qt.createComponent("zone.xiv.astra", "SyncSettings")
|
2024-07-30 18:43:06 -04:00
|
|
|
visible: LauncherCore.supportsSync()
|
2024-07-28 11:17:30 -04:00
|
|
|
},
|
2025-04-29 00:14:03 -04:00
|
|
|
KirigamiSettings.ConfigurationModule {
|
|
|
|
moduleId: "compattool"
|
2023-08-19 10:49:00 -04:00
|
|
|
text: i18n("Compatibility Tool")
|
2025-02-01 10:03:38 -05:00
|
|
|
icon.name: "system-run-symbolic"
|
2025-04-29 00:14:03 -04:00
|
|
|
page: () => Qt.createComponent("zone.xiv.astra", "CompatibilityToolSetup")
|
2024-04-27 16:38:22 +00:00
|
|
|
visible: !LauncherCore.isWindows
|
2023-08-19 10:49:00 -04:00
|
|
|
},
|
2025-04-29 00:14:03 -04:00
|
|
|
KirigamiSettings.ConfigurationModule {
|
|
|
|
moduleId: "devtool"
|
2023-08-19 10:30:52 -04:00
|
|
|
text: i18n("Developer Settings")
|
2025-02-01 10:03:38 -05:00
|
|
|
icon.name: "preferences-others-symbolic"
|
2025-04-29 00:14:03 -04:00
|
|
|
page: () => Qt.createComponent("zone.xiv.astra", "DeveloperSettings")
|
2025-03-17 18:03:10 -04:00
|
|
|
visible: LauncherCore.config.showDevTools
|
2023-08-19 10:49:00 -04:00
|
|
|
},
|
2025-04-29 00:14:03 -04:00
|
|
|
KirigamiSettings.ConfigurationModule {
|
|
|
|
moduleId: "about"
|
2023-08-19 10:30:52 -04:00
|
|
|
text: i18n("About Astra")
|
2025-02-01 10:03:38 -05:00
|
|
|
icon.name: "help-about-symbolic"
|
2025-04-29 00:14:03 -04:00
|
|
|
page: () => Qt.createComponent("zone.xiv.astra", "AboutPage")
|
2023-07-30 08:49:34 -04:00
|
|
|
}
|
2023-08-19 10:49:00 -04:00
|
|
|
]
|
|
|
|
}
|