diff --git a/modules/Privacy.qml b/modules/Privacy.qml index 01e6652..7a6ca61 100644 --- a/modules/Privacy.qml +++ b/modules/Privacy.qml @@ -9,21 +9,27 @@ Row { // Only detect active client streams, not hardware sources/devices readonly property bool _videoCapture: { - if (!Pipewire.nodes) return false; + if (!Pipewire.nodes) + return false; for (const node of Pipewire.nodes.values) { - if (!node.isStream) continue; + if (!node.isStream) + continue; const mc = node.properties?.["media.class"] ?? ""; - if (mc === "Stream/Input/Video" || mc === "Stream/Output/Video") return true; + if (mc === "Stream/Input/Video" || mc === "Stream/Output/Video") + return true; } return false; } readonly property bool _audioIn: { - if (!Pipewire.nodes) return false; + if (!Pipewire.nodes) + return false; for (const node of Pipewire.nodes.values) { - if (!node.isStream) continue; + if (!node.isStream) + continue; const mc = node.properties?.["media.class"] ?? ""; - if (mc === "Stream/Input/Audio") return true; + if (mc === "Stream/Input/Audio") + return true; } return false; } @@ -51,8 +57,16 @@ Row { SequentialAnimation on opacity { running: root._videoCapture loops: Animation.Infinite - NumberAnimation { to: 0.4; duration: 600; easing.type: Easing.InOutQuad } - NumberAnimation { to: 1; duration: 600; easing.type: Easing.InOutQuad } + NumberAnimation { + to: 0.4 + duration: 600 + easing.type: Easing.InOutQuad + } + NumberAnimation { + to: 1 + duration: 600 + easing.type: Easing.InOutQuad + } } } @@ -77,8 +91,16 @@ Row { SequentialAnimation on opacity { running: root._audioIn loops: Animation.Infinite - NumberAnimation { to: 0.4; duration: 600; easing.type: Easing.InOutQuad } - NumberAnimation { to: 1; duration: 600; easing.type: Easing.InOutQuad } + NumberAnimation { + to: 0.4 + duration: 600 + easing.type: Easing.InOutQuad + } + NumberAnimation { + to: 1 + duration: 600 + easing.type: Easing.InOutQuad + } } } } diff --git a/shell.qml b/shell.qml index 2d4c772..2476f27 100644 --- a/shell.qml +++ b/shell.qml @@ -19,7 +19,7 @@ ShellRoot { screen: scope.modelData } -ScreenCorners { + ScreenCorners { screen: scope.modelData } }