From cd1d46a26b923260b6c87cc93a0723b8166c609e Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 27 Aug 2021 19:45:41 +0200 Subject: [ui] refactor ui --- gui/components/Systray.qml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 gui/components/Systray.qml (limited to 'gui/components/Systray.qml') diff --git a/gui/components/Systray.qml b/gui/components/Systray.qml new file mode 100644 index 0000000..6fb1046 --- /dev/null +++ b/gui/components/Systray.qml @@ -0,0 +1,27 @@ +import QtQuick 2.0 +import QtQuick.Controls 2.4 +import Qt.labs.platform 1.0 as Labs + +Labs.SystemTrayIcon { + + visible: systrayVisible + property alias statusItem: statusItem + + menu: Labs.Menu { + + id: systrayMenu + + Labs.MenuItem { + id: statusItem + text: qsTr("Checking status…") + enabled: false + } + + Labs.MenuSeparator {} + + Labs.MenuItem { + text: qsTr("Quit") + onTriggered: backend.quit() + } + } +} -- cgit v1.2.3