From b80071db5cd8cddd4eac14048e3502527b511bf1 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 19:05:24 +0200 Subject: [PATCH] nix fmt --- modules/Privacy.qml | 42 ++++++++++++++++++++++++++++++++---------- shell.qml | 2 +- 2 files changed, 33 insertions(+), 11 deletions(-) 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 } }