add placeholder when volume mixer is empty

This commit is contained in:
end-4
2025-12-04 16:29:49 +01:00
parent 7d9a405146
commit e9b5e7d7d2
2 changed files with 12 additions and 0 deletions
@@ -30,6 +30,12 @@ ColumnLayout {
required property var modelData
node: modelData
}
PagePlaceholder {
icon: "widgets"
title: Translation.tr("No applications")
shown: !root.hasApps
shape: MaterialShape.Shape.Cookie7Sided
}
}
StyledComboBox {
@@ -18,6 +18,12 @@ Singleton {
readonly property real hardMaxValue: 2.00 // People keep joking about setting volume to 5172% so...
property string audioTheme: Config.options.sounds.theme
property real value: sink?.audio.volume ?? 0
property bool micBeingAccessed: Pipewire.links.values.filter(link =>
!link.source.isStream && !link.source.isSink && link.target.isStream
).length > 0
onMicBeingAccessedChanged: {
print(micBeingAccessed)
}
function friendlyDeviceName(node) {
return (node.nickname || node.description || Translation.tr("Unknown"));
}