shell configuration: Port to FormCard

This commit is contained in:
Carl Schwan 2023-09-21 21:05:10 +02:00
parent d8f3146de5
commit a12a106439
No known key found for this signature in database
GPG key ID: 02325448204E452A

View file

@ -12,7 +12,7 @@ import QtQuick.Layouts 1.15
import org.kde.plasma.plasmoid
import org.kde.newstuff 1.62 as NewStuff
import org.kde.kirigami 2.19 as Kirigami
import org.kde.kirigamiaddons.labs.mobileform 0.1 as MobileForm
import org.kde.kirigamiaddons.formcard 1.0 as FormCard
ColumnLayout {
id: root
@ -55,17 +55,12 @@ ColumnLayout {
Layout.alignment: Qt.AlignTop
Layout.fillWidth: true
MobileForm.FormCard {
Layout.fillWidth: true
contentItem: ColumnLayout {
spacing: 0
MobileForm.FormCardHeader {
FormCard.FormHeader {
title: i18n("General")
}
MobileForm.FormComboBoxDelegate {
FormCard.FormCard {
FormCard.FormComboBoxDelegate {
id: layoutSelectComboBox
enabled: !Plasmoid.immutable
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Homescreen Layout")
@ -91,9 +86,9 @@ ColumnLayout {
}
}
MobileForm.FormDelegateSeparator { above: layoutSelectComboBox; below: wallpaperPluginSelectComboBox }
FormCard.FormDelegateSeparator { above: layoutSelectComboBox; below: wallpaperPluginSelectComboBox }
MobileForm.FormComboBoxDelegate {
FormCard.FormComboBoxDelegate {
id: wallpaperPluginSelectComboBox
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Wallpaper Plugin")
description: i18n("The wallpaper plugin to use.")
@ -121,12 +116,12 @@ ColumnLayout {
}
}
MobileForm.FormDelegateSeparator { above: wallpaperPluginSelectComboBox }
FormCard.FormDelegateSeparator { above: wallpaperPluginSelectComboBox }
MobileForm.AbstractFormDelegate {
FormCard.AbstractFormDelegate {
id: wallpaperPluginButton
Layout.fillWidth: true
background: Item {}
background: null
contentItem: RowLayout {
QQC2.Label {
@ -142,7 +137,6 @@ ColumnLayout {
}
}
}
}
ColumnLayout {
id: switchContainmentWarning