added microphone peak monitor to audio popout
This commit is contained in:
@@ -136,13 +136,35 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomRect {
|
CustomClippingRect {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 42 + Appearance.spacing.smaller * 2
|
Layout.preferredHeight: 42 + Appearance.spacing.smaller * 2
|
||||||
Layout.topMargin: root.topMargin
|
Layout.topMargin: root.topMargin
|
||||||
color: DynamicColors.tPalette.m3surfaceContainer
|
color: DynamicColors.tPalette.m3surfaceContainer
|
||||||
radius: root.rounding
|
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 {
|
RowLayout {
|
||||||
id: inputVolume
|
id: inputVolume
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user