From 85c126ad1e7d31a92eae7b61fdd2870ec038cd9c Mon Sep 17 00:00:00 2001 From: zach Date: Wed, 22 Apr 2026 19:56:18 +0200 Subject: [PATCH] added microphone peak monitor to audio popout --- Modules/SysTray/Popouts/AudioPopup.qml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Modules/SysTray/Popouts/AudioPopup.qml b/Modules/SysTray/Popouts/AudioPopup.qml index c9c4727..5ef8644 100644 --- a/Modules/SysTray/Popouts/AudioPopup.qml +++ b/Modules/SysTray/Popouts/AudioPopup.qml @@ -136,13 +136,35 @@ Item { } } - CustomRect { + CustomClippingRect { Layout.fillWidth: true Layout.preferredHeight: 42 + Appearance.spacing.smaller * 2 Layout.topMargin: root.topMargin color: DynamicColors.tPalette.m3surfaceContainer radius: root.rounding + PwNodePeakMonitor { + id: sourcePeak + + node: Audio.source + } + + CustomRect { + id: sourcePeakFill + + anchors.bottom: parent.bottom + anchors.left: parent.left + anchors.top: parent.top + color: Qt.alpha(DynamicColors.palette.m3primary, 0.15) + implicitWidth: parent.width * sourcePeak.peak + + Behavior on implicitWidth { + Anim { + duration: MaterialEasing.expressiveEffectsTime + } + } + } + RowLayout { id: inputVolume