diff options
Diffstat (limited to 'contents/ui/ActivityView.qml')
-rw-r--r-- | contents/ui/ActivityView.qml | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/contents/ui/ActivityView.qml b/contents/ui/ActivityView.qml index 531a2c2..b6996ba 100644 --- a/contents/ui/ActivityView.qml +++ b/contents/ui/ActivityView.qml @@ -17,18 +17,30 @@ RowLayout { Layout.fillWidth: true PlasmaComponents3.CheckBox { id: activityCheckbox + Layout.alignment: Qt.AlignTop onToggled: () => { activityLabel.font.strikeout = (checkState == Qt.Checked) } } - PlasmaComponents3.Label { - id: activityLabel - text: `[${course}] ${title}` - font.bold: important - color: important ? PlasmaCore.Theme.negativeTextColor : PlasmaCore.Theme.textColor - elide: Text.ElideRight - Layout.fillWidth: true + ColumnLayout { + PlasmaComponents3.Label { + id: activityLabel + text: `[${course}] ${title}` + font.bold: important + color: important ? PlasmaCore.Theme.negativeTextColor : PlasmaCore.Theme.textColor + elide: Text.ElideRight + Layout.fillWidth: true + + } + + PlasmaComponents3.Label { + id: dueLabel + visible: type == "assignment" + text: "Due " + (due || "unknown") + color: activityLabel.color + Layout.fillWidth: true + } MouseArea { anchors.fill: parent @@ -38,6 +50,7 @@ RowLayout { } } } + } RowLayout { |