From 3798113af935296be456818deda6535e2dd5cdae Mon Sep 17 00:00:00 2001 From: reionwong Date: Mon, 30 Aug 2021 05:49:52 +0800 Subject: [PATCH] Add shutdown indicator --- qml/main.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qml/main.qml b/qml/main.qml index 4920118..e50f2f5 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -344,6 +344,19 @@ Item { visible: battery.showPercentage } } + + Image { + id: shutdownIcon + width: rootItem.iconSize + height: width + sourceSize: Qt.size(width, height) + source: "qrc:/images/" + (rootItem.darkMode ? "dark/" : "light/") + "system-shutdown-symbolic.svg" + asynchronous: true + Layout.alignment: Qt.AlignCenter + visible: !volumeIcon.visible && !batteryIcon.visible && !wirelessIcon.visible + antialiasing: true + smooth: false + } } }