From 07954a4ed82109ff95416bb2787b9e3dc76b8fc7 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 21 May 2025 11:13:04 +0800 Subject: dashboard: fix calendar weekdays --- modules/dashboard/dash/Calendar.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/dashboard/dash/Calendar.qml b/modules/dashboard/dash/Calendar.qml index ac31861..d9d5402 100644 --- a/modules/dashboard/dash/Calendar.qml +++ b/modules/dashboard/dash/Calendar.qml @@ -19,10 +19,14 @@ ColumnLayout { Layout.topMargin: Appearance.padding.large Layout.fillWidth: true - font.family: Appearance.font.family.sans - font.weight: 500 + delegate: StyledText { + required property var model - // delegate: StyledText {} + horizontalAlignment: Text.AlignHCenter + text: model.shortName + font.family: Appearance.font.family.sans + font.weight: 500 + } } MonthGrid { @@ -57,7 +61,7 @@ ColumnLayout { horizontalAlignment: Text.AlignHCenter text: grid.locale.toString(day.model.date, "d") - color: day.model.today ? Colours.palette.m3onPrimary : day.model.month === grid.month ? Colours.palette.m3onSurface : Colours.palette.m3outline + color: day.model.today ? Colours.palette.m3onPrimary : day.model.month === grid.month ? Colours.palette.m3onSurfaceVariant : Colours.palette.m3outline } } } -- cgit v1.2.3-freya