Commit 0cbfd474 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Consistent numbering in week view with month view for days. Fixes #99

parent 9064a02b
Pipeline #102194 passed with stage
in 4 minutes and 24 seconds
......@@ -70,7 +70,7 @@ Kirigami.ScrollablePage {
separatorVisible: false
Keys.onEnterPressed: clicked();
Keys.onEnterPressed: clicked(); // TODO: Remove this once upstream item handles this by itself
Keys.onReturnPressed: clicked();
onClicked: collectionPickerSheet.collectionPicked(collectionId);
......
......@@ -226,9 +226,9 @@ Kirigami.Page {
level: 2
color: isToday ? Kirigami.Theme.highlightColor : Kirigami.Theme.textColor
text: {
const longText = headingDate.toLocaleDateString(Qt.locale(), "dddd <b>dd</b>");
const mediumText = headingDate.toLocaleDateString(Qt.locale(), "ddd <b>dd</b>");
const shortText = mediumText.slice(0,1) + " " + headingDate.toLocaleDateString(Qt.locale(), "<b>dd</b>");
const longText = headingDate.toLocaleDateString(Qt.locale(), "dddd <b>d</b>");
const mediumText = headingDate.toLocaleDateString(Qt.locale(), "ddd <b>d</b>");
const shortText = mediumText.slice(0,1) + " " + headingDate.toLocaleDateString(Qt.locale(), "<b>d</b>");
if(fontMetrics.boundingRect(longText).width < width) {
......
Markdown is supported
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