From 668732f0188d9f98ac63bae368d4ecbff4cf571c Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 26 Jul 2023 15:34:07 +0800 Subject: Fetch and display announcement message --- contents/ui/main.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'contents/ui/main.qml') diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 6fd20bc..0fb0b64 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -58,6 +58,7 @@ Item { type: "announcement" course: "CS101" title: "Code quality" + message: "Code may be a little messy…" url: "https://xkcd.com/1513" important: true finished: false -- cgit v1.2.3 From 119255ee7c0e76edbc9a43e4550ccb664d0baea3 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 27 Jul 2023 10:35:58 +0800 Subject: Add missing i18n()s --- contents/ui/main.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'contents/ui/main.qml') diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 0fb0b64..7e4b3ba 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -43,12 +43,12 @@ Item { PlasmaExtras.Heading { level: 1 - text: "Kanvas" + text: i18n("Kanvas") } PlasmaExtras.Heading { level: 2 - text: "Announcements" + text: i18n("Announcements") } ListModel { @@ -86,14 +86,14 @@ Item { width: parent.width - (PlasmaCore.Units.largeSpacing * 4) visible: announcementsModel.count == 0 iconName: "mail-read-symbolic" - text: "No announcements" + text: i18n("No announcements") } } } PlasmaExtras.Heading { level: 2 - text: "Assignments" + text: i18n("Assignments") } ListModel { @@ -132,7 +132,7 @@ Item { width: parent.width - (PlasmaCore.Units.largeSpacing * 4) visible: assignmentsModel.count == 0 iconName: "mail-read-symbolic" - text: "No assignments" + text: i18n("No assignments") } } } @@ -147,7 +147,7 @@ Item { PlasmaComponents3.Label { id: offlineLabel visible: networkStatus.networkStatus != "Connected" - text: "Network disconnected" + text: i18n("Network disconnected") color: PlasmaCore.Theme.negativeTextColor } } -- cgit v1.2.3 From c82c7b64b82657693a9e2b466a2d8803ce393f07 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sat, 29 Jul 2023 15:14:16 +0800 Subject: Add reminder to migrate to KF6 --- contents/ui/main.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'contents/ui/main.qml') diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 7e4b3ba..4e3be19 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -11,6 +11,7 @@ import org.kde.plasma.networkmanagement 0.2 as PlasmaNM import "kanvas.js" as Kanvas +// TODO: change to PlasmoidItem on KF6 Item { width: PlasmaCore.Units.gridUnit * 20 height: PlasmaCore.Units.gridUnit * 40 -- cgit v1.2.3