shift-shell/initialstart/modules/finished/contents/ui/main.qml
Marco Allegretti 42d41351e2 Add profile-aware initial setup
Detect the device class, stage the selected experience, and write the resulting setup choices through SetupState.

Load the new device and experience modules before the existing setup pages, and use the Shift icon on the finished page.
2026-05-11 10:03:07 +02:00

42 lines
1.2 KiB
QML

// SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
// SPDX-License-Identifier: GPL-2.0-or-later
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import org.kde.kirigami as Kirigami
import org.kde.plasma.mobileinitialstart.initialstart
InitialStartModule {
name: i18n("Complete!")
contentItem: Item {
id: root
ColumnLayout {
anchors.fill: parent
anchors.margins: Kirigami.Units.gridUnit
spacing: Kirigami.Units.gridUnit
Item { Layout.fillHeight: true }
Kirigami.Icon {
Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: Kirigami.Units.iconSizes.huge
Layout.preferredHeight: Kirigami.Units.iconSizes.huge
source: "start-here-shift"
}
Label {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
text: i18n("Your device is ready. <br /><br />SHIFT will start with the <b>%1</b> experience.", SetupState.experienceProfile)
wrapMode: Text.Wrap
horizontalAlignment: Text.AlignHCenter
}
Item { Layout.fillHeight: true }
}
}
}