From 43af16801fcbb7056a51ed5fd6539c74ff5c0379 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 12 Sep 2025 14:21:21 +0200 Subject: ... --- .../gkleen@sif/shell/quickshell/PipewireWidget.qml | 40 ++++++++++++++-------- 1 file changed, 26 insertions(+), 14 deletions(-) (limited to 'accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml') diff --git a/accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml b/accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml index 3e0b8fd9..9c6b65a4 100644 --- a/accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml +++ b/accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml @@ -272,16 +272,22 @@ Item { onWheel: event => defaultSinkMouseArea.scrollVolume(event); - anchors.centerIn: parent + anchors.fill: parent + + Item { + anchors.fill: parent - Text { - id: volumeTooltipText + Text { + id: volumeTooltipText - font.pointSize: 10 - font.family: "Fira Sans" - color: "white" + anchors.centerIn: parent - text: `${Math.round(defaultSinkItem.modelData?.audio?.volume * 100)}%` + font.pointSize: 10 + font.family: "Fira Sans" + color: "white" + + text: `${Math.round(defaultSinkItem.modelData?.audio?.volume * 100)}%` + } } } } @@ -391,16 +397,22 @@ Item { onWheel: event => defaultSourceMouseArea.scrollVolume(event); - anchors.centerIn: parent + anchors.fill: parent + + Item { + anchors.fill: parent - Text { - id: volumeTooltipText + Text { + id: volumeTooltipText - font.pointSize: 10 - font.family: "Fira Sans" - color: "white" + anchors.centerIn: parent - text: `${Math.round(defaultSourceItem.modelData?.audio?.volume * 100)}%` + font.pointSize: 10 + font.family: "Fira Sans" + color: "white" + + text: `${Math.round(defaultSourceItem.modelData?.audio?.volume * 100)}%` + } } } } -- cgit v1.2.3