LocationTab: add setting for first day of the week

Calendar: replace MonthGrid with custom solution to allow changing first
day of the week
This commit is contained in:
lysec
2025-10-19 16:46:53 +02:00
parent 8b5f06aec6
commit af7498155c
12 changed files with 185 additions and 44 deletions
+21
View File
@@ -117,6 +117,27 @@ ColumnLayout {
checked: Settings.data.location.showWeekNumberInCalendar
onToggled: checked => Settings.data.location.showWeekNumberInCalendar = checked
}
NComboBox {
label: I18n.tr("settings.location.date-time.first-day-of-week.label")
description: I18n.tr("settings.location.date-time.first-day-of-week.description")
minimumWidth: 220 * Style.uiScaleRatio
model: [{
"key": "auto",
"name": I18n.tr("settings.location.date-time.first-day-of-week.auto")
}, {
"key": "monday",
"name": I18n.tr("settings.location.date-time.first-day-of-week.monday")
}, {
"key": "saturday",
"name": I18n.tr("settings.location.date-time.first-day-of-week.saturday")
}, {
"key": "sunday",
"name": I18n.tr("settings.location.date-time.first-day-of-week.sunday")
}]
currentKey: Settings.data.location.firstDayOfWeek
onSelected: key => Settings.data.location.firstDayOfWeek = key
}
}
NDivider {