mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
add placeholder when volume mixer is empty
This commit is contained in:
@@ -30,6 +30,12 @@ ColumnLayout {
|
|||||||
required property var modelData
|
required property var modelData
|
||||||
node: modelData
|
node: modelData
|
||||||
}
|
}
|
||||||
|
PagePlaceholder {
|
||||||
|
icon: "widgets"
|
||||||
|
title: Translation.tr("No applications")
|
||||||
|
shown: !root.hasApps
|
||||||
|
shape: MaterialShape.Shape.Cookie7Sided
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledComboBox {
|
StyledComboBox {
|
||||||
|
|||||||
@@ -18,6 +18,12 @@ Singleton {
|
|||||||
readonly property real hardMaxValue: 2.00 // People keep joking about setting volume to 5172% so...
|
readonly property real hardMaxValue: 2.00 // People keep joking about setting volume to 5172% so...
|
||||||
property string audioTheme: Config.options.sounds.theme
|
property string audioTheme: Config.options.sounds.theme
|
||||||
property real value: sink?.audio.volume ?? 0
|
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) {
|
function friendlyDeviceName(node) {
|
||||||
return (node.nickname || node.description || Translation.tr("Unknown"));
|
return (node.nickname || node.description || Translation.tr("Unknown"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user