2025-07-10 16:00:41 +00:00
|
|
|
/*
|
|
|
|
|
* SPDX-FileCopyrightText: 2025 Florian RICHER <florian.richer@protonmail.com>
|
|
|
|
|
* SPDX-License-Identifier: LGPL-2.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
import QtQuick.Controls 2.15 as QQC2
|
|
|
|
|
|
2026-03-07 03:08:07 +00:00
|
|
|
import org.kde.kirigami as Kirigami
|
2025-07-10 16:00:41 +00:00
|
|
|
import org.kde.kirigamiaddons.formcard 1.0 as FormCard
|
|
|
|
|
import org.kde.plasma.components 3.0 as PC3
|
|
|
|
|
import org.kde.plasma.private.mobileshell.waydroidintegrationplugin as AIP
|
|
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
|
FormCard.FormHeader {
|
|
|
|
|
title: i18n("Initial configuration")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FormCard.FormCard {
|
|
|
|
|
FormCard.FormComboBoxDelegate {
|
|
|
|
|
id: systemType
|
|
|
|
|
text: i18n("System type")
|
|
|
|
|
|
|
|
|
|
model: [
|
2025-08-06 20:06:17 +00:00
|
|
|
{"name": "Vanilla", "value": AIP.WaydroidDBusClient.Vanilla},
|
|
|
|
|
{"name": "GAPPS", "value": AIP.WaydroidDBusClient.Gapps}
|
2025-07-10 16:00:41 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
textRole: "name"
|
|
|
|
|
valueRole: "value"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PC3.Button {
|
2025-12-27 13:57:22 +00:00
|
|
|
text: i18n("Configure Waydroid")
|
2025-07-10 16:00:41 +00:00
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
|
enabled: systemType.currentValue !== undefined
|
|
|
|
|
|
2025-08-06 20:06:17 +00:00
|
|
|
onClicked: AIP.WaydroidDBusClient.initialize(systemType.currentValue, AIP.WaydroidDBusClient.Lineage)
|
2025-07-10 16:00:41 +00:00
|
|
|
}
|
2026-03-07 03:08:07 +00:00
|
|
|
}
|