Commit 56136c20 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Clean indentation of settings qml



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 7cb80962
Pipeline #243983 passed with stage
in 5 minutes and 41 seconds
......@@ -38,8 +38,8 @@ Kirigami.Page {
topPadding: 2 * Kirigami.Units.largeSpacing
background: Item {}
leftPadding: Kirigami.Settings.isMobile ?
(Kirigami.Units.largeSpacing * 2 * model.kDescendantLevel) + (Kirigami.Units.iconSizes.smallMedium * (model.kDescendantLevel - 1)) :
(Kirigami.Units.largeSpacing * model.kDescendantLevel) + (Kirigami.Units.iconSizes.smallMedium * (model.kDescendantLevel - 1))
(Kirigami.Units.largeSpacing * 2 * model.kDescendantLevel) + (Kirigami.Units.iconSizes.smallMedium * (model.kDescendantLevel - 1)) :
(Kirigami.Units.largeSpacing * model.kDescendantLevel) + (Kirigami.Units.iconSizes.smallMedium * (model.kDescendantLevel - 1))
hoverEnabled: false
separatorVisible: false
......@@ -89,8 +89,8 @@ Kirigami.Page {
hoverEnabled: false
separatorVisible: false
leftPadding: Kirigami.Settings.isMobile ?
(Kirigami.Units.largeSpacing * 2 * model.kDescendantLevel) + (Kirigami.Units.iconSizes.smallMedium * (model.kDescendantLevel - 1)) :
(Kirigami.Units.largeSpacing * model.kDescendantLevel) + (Kirigami.Units.iconSizes.smallMedium * (model.kDescendantLevel - 1))
(Kirigami.Units.largeSpacing * 2 * model.kDescendantLevel) + (Kirigami.Units.iconSizes.smallMedium * (model.kDescendantLevel - 1)) :
(Kirigami.Units.largeSpacing * model.kDescendantLevel) + (Kirigami.Units.iconSizes.smallMedium * (model.kDescendantLevel - 1))
trailing: ColoredCheckbox {
color: model.collectionColor
......
......@@ -10,25 +10,25 @@ import org.kde.kalendar 1.0
Kirigami.CategorizedSettings {
objectName: "settingsPage"
actions: [
Kirigami.SettingAction {
text: i18n("Appearance")
icon.name: "preferences-desktop-theme-global"
page: Qt.resolvedUrl("ViewSettingsPage.qml")
},
Kirigami.SettingAction {
text: i18n("Accounts")
icon.name: "preferences-system-users"
page: Qt.resolvedUrl("SourceSettingsPage.qml")
},
Kirigami.SettingAction {
text: i18n("Calendars")
icon.name: "korganizer"
page: Qt.resolvedUrl("CalendarSettingsPage.qml")
},
Kirigami.SettingAction {
text: i18n("About Kalendar")
icon.name: "help-about"
page: Qt.resolvedUrl("AboutPage.qml")
}
Kirigami.SettingAction {
text: i18n("Appearance")
icon.name: "preferences-desktop-theme-global"
page: Qt.resolvedUrl("ViewSettingsPage.qml")
},
Kirigami.SettingAction {
text: i18n("Accounts")
icon.name: "preferences-system-users"
page: Qt.resolvedUrl("SourceSettingsPage.qml")
},
Kirigami.SettingAction {
text: i18n("Calendars")
icon.name: "korganizer"
page: Qt.resolvedUrl("CalendarSettingsPage.qml")
},
Kirigami.SettingAction {
text: i18n("About Kalendar")
icon.name: "help-about"
page: Qt.resolvedUrl("AboutPage.qml")
}
]
}
......@@ -16,7 +16,7 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
Layout.topMargin: Kirigami.Units.largeSpacing
contentItem: ColumnLayout {
spacing: 0
spacing: 0
MobileForm.FormCardHeader {
title: i18n("General settings")
}
......@@ -68,7 +68,7 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
Layout.topMargin: Kirigami.Units.largeSpacing
contentItem: ColumnLayout {
spacing: 0
spacing: 0
MobileForm.FormCardHeader {
title: i18n("Month View settings")
}
......@@ -83,8 +83,8 @@ Kirigami.ScrollablePage {
MobileForm.FormSectionText {
text: i18n("Weekday label alignment")
}
ColumnLayout {
spacing: 0
ColumnLayout {
spacing: 0
Layout.fillWidth: true
MobileForm.FormRadioDelegate {
property int value: Config.Left
......@@ -143,7 +143,7 @@ Kirigami.ScrollablePage {
checked: Config.weekdayLabelLength === value
Controls.ButtonGroup.group: weekdayLabelLengthGroup
}
MobileForm.FormCheckDelegate {
text: i18n("Show week numbers")
checked: Config.showWeekNumbers
......@@ -185,7 +185,7 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
Layout.topMargin: Kirigami.Units.largeSpacing
contentItem: ColumnLayout {
spacing: 0
spacing: 0
MobileForm.FormCardHeader {
title: i18n("Schedule View settings")
}
......@@ -205,7 +205,7 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
Layout.topMargin: Kirigami.Units.largeSpacing
contentItem: ColumnLayout {
spacing: 0
spacing: 0
MobileForm.FormCardHeader {
title: i18n("Tasks View settings")
}
......@@ -219,12 +219,12 @@ Kirigami.ScrollablePage {
}
}
}
}
}
MobileForm.FormCard {
Layout.fillWidth: true
Layout.topMargin: Kirigami.Units.largeSpacing
contentItem: ColumnLayout {
spacing: 0
spacing: 0
MobileForm.FormCardHeader {
title: i18n("Maps")
}
......
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