summaryrefslogtreecommitdiff
path: root/contents
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2023-07-25 17:25:54 +0800
committerFrederick Yin <fkfd@fkfd.me>2023-07-25 17:25:54 +0800
commitf893c7354b2adff009b2df35e464ba4fa4312340 (patch)
treebb198940a3e6a4fd3ed3d264cc7fb3568be04bd6 /contents
parent5cc2aa76d0288390f1de4512d4dcff1ab4ac3806 (diff)
Add offline label
Diffstat (limited to 'contents')
-rw-r--r--contents/ui/main.qml17
1 files changed, 13 insertions, 4 deletions
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
+ }
}
}
}