From f893c7354b2adff009b2df35e464ba4fa4312340 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Tue, 25 Jul 2023 17:25:54 +0800 Subject: Add offline label --- contents/ui/main.qml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'contents/ui') diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 67857d4..6465a16 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -136,10 +136,19 @@ Item { } } - PlasmaComponents3.Button { - icon.name: "view-refresh" - text: i18n("Refresh") - onClicked: Kanvas.syncCanvas() + RowLayout { + PlasmaComponents3.Button { + icon.name: "view-refresh" + text: i18n("Refresh") + onClicked: Kanvas.syncCanvas() + } + + PlasmaComponents3.Label { + id: offlineLabel + visible: networkStatus.networkStatus != "Connected" + text: "Network disconnected" + color: PlasmaCore.Theme.negativeTextColor + } } } } -- cgit v1.2.3