shift-shell/initialstart/modules/finished/contents/ui/main.qml
Devin Lin e66d88a754 initialstart: Introduce InitialStartModule as top level item for modules
Currently modules are initialized as QQuickItems. In order to be able to
add custom properties for modules to set in the future, introduce
InitialStartModule as the top-level QML object for modules to
initialize.

Currently only two properties are implemented: `available` for whether
to show the module in the wizard, and `contentItem` for the visual
module item.
2024-11-06 22:07:50 -08:00

40 lines
1.1 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 2.20 as Kirigami
import org.kde.plasma.mobileinitialstart.initialstart
InitialStartModule {
contentItem: Item {
id: root
property string name: i18n("Complete!")
ColumnLayout {
anchors.fill: parent
anchors.margins: Kirigami.Units.gridUnit
Label {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
text: i18n("Your device is now ready. <br /><br />Enjoy <b>%1</b>!", InitialStartUtil.distroName)
wrapMode: Text.Wrap
horizontalAlignment: Text.AlignHCenter
}
Item { Layout.fillHeight: true }
Image {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
fillMode: Image.PreserveAspectFit
source: "konqi-calling.png"
}
}
}
}