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.plasma.plasmoid
|
||||||
import org.kde.newstuff 1.62 as NewStuff
|
import org.kde.newstuff 1.62 as NewStuff
|
||||||
import org.kde.kirigami 2.19 as Kirigami
|
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 {
|
ColumnLayout {
|
||||||
id: root
|
id: root
|
||||||
|
|
@ -55,17 +55,12 @@ ColumnLayout {
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
MobileForm.FormCard {
|
FormCard.FormHeader {
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
contentItem: ColumnLayout {
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
MobileForm.FormCardHeader {
|
|
||||||
title: i18n("General")
|
title: i18n("General")
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileForm.FormComboBoxDelegate {
|
FormCard.FormCard {
|
||||||
|
FormCard.FormComboBoxDelegate {
|
||||||
id: layoutSelectComboBox
|
id: layoutSelectComboBox
|
||||||
enabled: !Plasmoid.immutable
|
enabled: !Plasmoid.immutable
|
||||||
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Homescreen Layout")
|
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
|
id: wallpaperPluginSelectComboBox
|
||||||
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Wallpaper Plugin")
|
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Wallpaper Plugin")
|
||||||
description: i18n("The wallpaper plugin to use.")
|
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
|
id: wallpaperPluginButton
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
background: Item {}
|
background: null
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
QQC2.Label {
|
QQC2.Label {
|
||||||
|
|
@ -142,7 +137,6 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: switchContainmentWarning
|
id: switchContainmentWarning
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue