mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-01 17:24:48 +00:00
shell configuration: Port to FormCard
This commit is contained in:
parent
d8f3146de5
commit
a12a106439
1 changed files with 75 additions and 81 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue