Commit 349c3066 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Remove incidence type icons from events in month view, add event start times...

Remove incidence type icons from events in month view, add event start times in incidence delegates (and due dates for todos)
parent 6ebf38e9
Pipeline #130650 passed with stage
in 1 minute and 14 seconds
......@@ -134,7 +134,21 @@ Item {
isInCurrentMonth ? incidenceContents.textColor :
incidenceContents.otherMonthTextColor(modelData.color)
Behavior on color { ColorAnimation { duration: Kirigami.Units.shortDuration; easing.type: Easing.OutCubic } }
visible: !parent.spaceRestricted
visible: !parent.spaceRestricted && modelData.incidenceType === Kalendar.IncidenceWrapper.TypeTodo
}
QQC2.Label {
text: modelData.incidenceType === Kalendar.IncidenceWrapper.TypeTodo ?
modelData.endTime.toLocaleTimeString(Qt.locale(), Locale.NarrowFormat) :
modelData.startTime.toLocaleTimeString(Qt.locale(), Locale.NarrowFormat)
font.pointSize: parent.spaceRestricted ? Kirigami.Theme.smallFont.pointSize :
Kirigami.Theme.defaultFont.pointSize
renderType: Text.QtRendering
color: isOpenOccurrence ? (LabelUtils.isDarkColor(modelData.color) ? "white" : "black") :
isInCurrentMonth ? incidenceContents.textColor :
incidenceContents.otherMonthTextColor(modelData.color)
Behavior on color { ColorAnimation { duration: Kirigami.Units.shortDuration; easing.type: Easing.OutCubic } }
visible: !modelData.allDay
}
QQC2.Label {
......
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