diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/PipewireWidget.qml | 40 |
1 files changed, 26 insertions, 14 deletions
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 { | |||
272 | 272 | ||
273 | onWheel: event => defaultSinkMouseArea.scrollVolume(event); | 273 | onWheel: event => defaultSinkMouseArea.scrollVolume(event); |
274 | 274 | ||
275 | anchors.centerIn: parent | 275 | anchors.fill: parent |
276 | |||
277 | Item { | ||
278 | anchors.fill: parent | ||
276 | 279 | ||
277 | Text { | 280 | Text { |
278 | id: volumeTooltipText | 281 | id: volumeTooltipText |
279 | 282 | ||
280 | font.pointSize: 10 | 283 | anchors.centerIn: parent |
281 | font.family: "Fira Sans" | ||
282 | color: "white" | ||
283 | 284 | ||
284 | text: `${Math.round(defaultSinkItem.modelData?.audio?.volume * 100)}%` | 285 | font.pointSize: 10 |
286 | font.family: "Fira Sans" | ||
287 | color: "white" | ||
288 | |||
289 | text: `${Math.round(defaultSinkItem.modelData?.audio?.volume * 100)}%` | ||
290 | } | ||
285 | } | 291 | } |
286 | } | 292 | } |
287 | } | 293 | } |
@@ -391,16 +397,22 @@ Item { | |||
391 | 397 | ||
392 | onWheel: event => defaultSourceMouseArea.scrollVolume(event); | 398 | onWheel: event => defaultSourceMouseArea.scrollVolume(event); |
393 | 399 | ||
394 | anchors.centerIn: parent | 400 | anchors.fill: parent |
401 | |||
402 | Item { | ||
403 | anchors.fill: parent | ||
395 | 404 | ||
396 | Text { | 405 | Text { |
397 | id: volumeTooltipText | 406 | id: volumeTooltipText |
398 | 407 | ||
399 | font.pointSize: 10 | 408 | anchors.centerIn: parent |
400 | font.family: "Fira Sans" | ||
401 | color: "white" | ||
402 | 409 | ||
403 | text: `${Math.round(defaultSourceItem.modelData?.audio?.volume * 100)}%` | 410 | font.pointSize: 10 |
411 | font.family: "Fira Sans" | ||
412 | color: "white" | ||
413 | |||
414 | text: `${Math.round(defaultSourceItem.modelData?.audio?.volume * 100)}%` | ||
415 | } | ||
404 | } | 416 | } |
405 | } | 417 | } |
406 | } | 418 | } |