waffles: make calendar more 🍔🦅-friendly

do we care about somalia and ethiopia
This commit is contained in:
end-4
2025-11-27 08:14:15 +01:00
parent d27fbede2a
commit d40df98aa5
3 changed files with 17 additions and 3 deletions
@@ -1,4 +1,5 @@
pragma ComponentBehavior: Bound
import QtQml
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
@@ -16,6 +17,9 @@ BodyRectangle {
// State
property bool collapsed
// Locale
property var locale: Config.options.calendar.forceMondayWeekStart ? Qt.locale("en-GB") : Qt.locale()
implicitHeight: collapsed ? 0 : contentColumn.implicitHeight
implicitWidth: contentColumn.implicitWidth
@@ -38,7 +42,7 @@ BodyRectangle {
spacing: 1
DayOfWeekRow {
Layout.fillWidth: true
locale: Qt.locale("en-GB")
locale: root.locale
spacing: calendarView.buttonSpacing
implicitHeight: calendarView.buttonSize
delegate: Item {
@@ -56,6 +60,7 @@ BodyRectangle {
}
CalendarView {
id: calendarView
locale: root.locale
verticalPadding: 2
buttonSize: 41 // ???
buttonSpacing: 1