mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 11:47:46 +00:00
Add a Developer Settings page
This commit is contained in:
parent
5e9fcfab78
commit
ca0b25c935
3 changed files with 44 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
<file>ui/Pages/NewsPage.qml</file>
|
||||
<file>ui/Pages/StatusPage.qml</file>
|
||||
<file>ui/Settings/AccountSettings.qml</file>
|
||||
<file>ui/Settings/DeveloperSettings.qml</file>
|
||||
<file>ui/Settings/GeneralSettings.qml</file>
|
||||
<file>ui/Settings/ProfileSettings.qml</file>
|
||||
<file>ui/Settings/SettingsPage.qml</file>
|
||||
|
|
35
launcher/ui/Settings/DeveloperSettings.qml
Normal file
35
launcher/ui/Settings/DeveloperSettings.qml
Normal file
|
@ -0,0 +1,35 @@
|
|||
// 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
|
||||
|
||||
import "../Components"
|
||||
|
||||
Kirigami.ScrollablePage {
|
||||
id: page
|
||||
|
||||
title: i18n("Developer Settings")
|
||||
|
||||
ColumnLayout {
|
||||
width: parent.width
|
||||
|
||||
MobileForm.FormCard {
|
||||
Layout.topMargin: Kirigami.Units.largeSpacing
|
||||
Layout.fillWidth: true
|
||||
contentItem: ColumnLayout {
|
||||
spacing: 0
|
||||
|
||||
MobileForm.FormCheckDelegate {
|
||||
text: i18n("Keep Patches")
|
||||
description: i18n("Do not delete patches after they're used. Astra will not redownload patch data, if found.")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -116,6 +116,14 @@ Kirigami.ScrollablePage {
|
|||
}
|
||||
}
|
||||
|
||||
MobileForm.FormButtonDelegate {
|
||||
text: i18n("Developer Settings")
|
||||
icon.name: "configure"
|
||||
onClicked: applicationWindow().pageStack.layers.push('qrc:/ui/Settings/DeveloperSettings.qml')
|
||||
}
|
||||
|
||||
MobileForm.FormDelegateSeparator {}
|
||||
|
||||
MobileForm.FormButtonDelegate {
|
||||
text: i18n("About Astra")
|
||||
icon.name: "help-about-symbolic"
|
||||
|
|
Loading…
Add table
Reference in a new issue