diff options
author | Frederick Yin <fkfd@fkfd.me> | 2023-07-25 17:25:54 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2023-07-25 17:25:54 +0800 |
commit | f893c7354b2adff009b2df35e464ba4fa4312340 (patch) | |
tree | bb198940a3e6a4fd3ed3d264cc7fb3568be04bd6 /contents/ui/main.qml | |
parent | 5cc2aa76d0288390f1de4512d4dcff1ab4ac3806 (diff) |
Add offline label
Diffstat (limited to 'contents/ui/main.qml')
-rw-r--r-- | contents/ui/main.qml | 17 |
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 + } } } } |