Commit 1f07c493 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix indentation



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent b06d5126
Pipeline #234248 passed with stage
in 2 minutes
......@@ -14,30 +14,30 @@ Kirigami.ScrollablePage {
title: i18n("Accounts")
ColumnLayout {
AgentConfigurationForm {
AgentConfigurationForm {
mimetypes: [MimeTypes.calendar, MimeTypes.todo]
title: i18n("Calendars")
addPageTitle: i18n("Add New Calendar Source…")
Layout.fillWidth: true
Layout.topMargin: Kirigami.Units.largeSpacing
}
}
AgentConfigurationForm {
AgentConfigurationForm {
mimetypes: [MimeTypes.contactGroup, MimeTypes.address]
title: i18n("Contact Books")
addPageTitle: i18n("Add New Address Book Source…")
Layout.fillWidth: true
Layout.topMargin: Kirigami.Units.largeSpacing
}
}
// TODO actually we should show identity instead as an identity contains a receiving and sending account
AgentConfigurationForm {
// TODO actually we should show identity instead as an identity contains a receiving and sending account
AgentConfigurationForm {
visible: Config.enableMailIntegration
mimetypes: [MimeTypes.mail]
title: i18n("Mail Accounts")
addPageTitle: i18n("Add New mail account…")
Layout.fillWidth: true
Layout.topMargin: Kirigami.Units.largeSpacing
}
}
}
}
......@@ -16,99 +16,99 @@ MobileForm.FormCard {
required property string addPageTitle
readonly property AgentConfiguration _configuration: AgentConfiguration {
mimetypes: root.mimetypes
mimetypes: root.mimetypes
}
contentItem: ColumnLayout {
spacing: 0
MobileForm.FormCardHeader {
title: root.title
}
Repeater {
model: root._configuration.runningAgents
delegate: MobileForm.FormButtonDelegate {
Loader {
id: dialogLoader
sourceComponent: Kirigami.PromptDialog {
id: dialog
title: i18n("Configure %1", model.display)
subtitle: i18n("Modify or delete this account agent.")
standardButtons: Kirigami.Dialog.NoButton
customFooterActions: [
Kirigami.Action {
text: i18n("Modify")
iconName: "edit-entry"
onTriggered: {
root._configuration.edit(model.index);
dialog.close();
}
},
Kirigami.Action {
text: i18n("Delete")
iconName: "delete"
onTriggered: {
root._configuration.remove(model.index);
dialog.close();
}
}
]
}
}
onClicked: {
dialogLoader.active = true;
dialogLoader.item.open();
}
contentItem: RowLayout {
Kirigami.Icon {
source: model.decoration
Layout.rightMargin: Kirigami.Units.largeSpacing
implicitWidth: Kirigami.Units.iconSizes.medium
implicitHeight: Kirigami.Units.iconSizes.medium
}
ColumnLayout {
Layout.fillWidth: true
spacing: Kirigami.Units.smallSpacing
QQC2.Label {
Layout.fillWidth: true
text: model.display
elide: Text.ElideRight
wrapMode: Text.Wrap
maximumLineCount: 2
color: Kirigami.Theme.textColor
}
QQC2.Label {
Layout.fillWidth: true
text: model.statusMessage
color: Kirigami.Theme.disabledTextColor
font: Kirigami.Theme.smallFont
elide: Text.ElideRight
}
}
MobileForm.FormArrow {
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
direction: MobileForm.FormArrow.Right
}
}
}
}
MobileForm.FormDelegateSeparator { below: addAccountDelegate }
MobileForm.FormButtonDelegate {
id: addAccountDelegate
text: i18n("Add Account")
icon.name: "list-add"
onClicked: pageStack.pushDialogLayer(addAccountPage)
}
spacing: 0
MobileForm.FormCardHeader {
title: root.title
}
Repeater {
model: root._configuration.runningAgents
delegate: MobileForm.FormButtonDelegate {
Loader {
id: dialogLoader
sourceComponent: Kirigami.PromptDialog {
id: dialog
title: i18n("Configure %1", model.display)
subtitle: i18n("Modify or delete this account agent.")
standardButtons: Kirigami.Dialog.NoButton
customFooterActions: [
Kirigami.Action {
text: i18n("Modify")
iconName: "edit-entry"
onTriggered: {
root._configuration.edit(model.index);
dialog.close();
}
},
Kirigami.Action {
text: i18n("Delete")
iconName: "delete"
onTriggered: {
root._configuration.remove(model.index);
dialog.close();
}
}
]
}
}
onClicked: {
dialogLoader.active = true;
dialogLoader.item.open();
}
contentItem: RowLayout {
Kirigami.Icon {
source: model.decoration
Layout.rightMargin: Kirigami.Units.largeSpacing
implicitWidth: Kirigami.Units.iconSizes.medium
implicitHeight: Kirigami.Units.iconSizes.medium
}
ColumnLayout {
Layout.fillWidth: true
spacing: Kirigami.Units.smallSpacing
QQC2.Label {
Layout.fillWidth: true
text: model.display
elide: Text.ElideRight
wrapMode: Text.Wrap
maximumLineCount: 2
color: Kirigami.Theme.textColor
}
QQC2.Label {
Layout.fillWidth: true
text: model.statusMessage
color: Kirigami.Theme.disabledTextColor
font: Kirigami.Theme.smallFont
elide: Text.ElideRight
}
}
MobileForm.FormArrow {
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
direction: MobileForm.FormArrow.Right
}
}
}
}
MobileForm.FormDelegateSeparator { below: addAccountDelegate }
MobileForm.FormButtonDelegate {
id: addAccountDelegate
text: i18n("Add Account")
icon.name: "list-add"
onClicked: pageStack.pushDialogLayer(addAccountPage)
}
}
Component {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment