diff --git a/src/gui/Window.qml b/src/gui/Window.qml index e19e165f..542badc7 100644 --- a/src/gui/Window.qml +++ b/src/gui/Window.qml @@ -2,6 +2,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 +import Qt.labs.platform 1.1 import "Base" import "PythonBridge" @@ -100,4 +101,19 @@ ApplicationWindow { Behavior on scale { HNumberAnimation { overshoot: 3; factor: 1.2 } } } + + SystemTrayIcon { + property string iconPack: theme ? theme.icons.preferredPack : "thin" + + visible: true + tooltip: qsTr("Mirage") + icon.source: `../icons/${iconPack}/tray-icon.png` + + menu: Menu { + MenuItem { + text: qsTr("Quit") + onTriggered: window.close() + } + } + } } diff --git a/src/icons/thin/tray-icon.png b/src/icons/thin/tray-icon.png new file mode 100644 index 00000000..ffa58eec Binary files /dev/null and b/src/icons/thin/tray-icon.png differ