Commit 14c4adfb authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Account for current time label boldness in week view hour label width

parent 62119132
Pipeline #96954 passed with stage
in 5 minutes and 26 seconds
......@@ -43,13 +43,18 @@ Kirigami.Page {
readonly property real dayWidth: ((root.width - hourLabelWidth - leftPadding - scrollbarWidth) / daysToShow) - gridLineWidth
readonly property real incidenceSpacing: Kirigami.Units.smallSpacing / 2
readonly property real gridLineWidth: 1.0
readonly property real hourLabelWidth: fontMetrics.boundingRect(new Date(0,0,0,2,0,0,0).toLocaleTimeString(Qt.locale(), Locale.NarrowFormat)).width +
Kirigami.Units.largeSpacing * 2
readonly property real hourLabelWidth: hourLabelMetrics.boundingRect(new Date(0,0,0,0,0,0,0).toLocaleTimeString(Qt.locale(), Locale.NarrowFormat)).width +
Kirigami.Units.largeSpacing * 2.5
readonly property real periodHeight: Kirigami.Units.gridUnit / 2
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.View
FontMetrics {
id: hourLabelMetrics
font.bold: true
}
background: Rectangle {
color: Kirigami.Theme.backgroundColor
}
......
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