pipewire service, lock-aware applets, cpu overall chart, security comments
This commit is contained in:
parent
e7bf175169
commit
8628b4b27b
13 changed files with 183 additions and 208 deletions
|
|
@ -5,11 +5,9 @@ import "../services" as S
|
|||
Column {
|
||||
id: root
|
||||
|
||||
required property var sink
|
||||
required property var sinkList
|
||||
required property var streamList
|
||||
required property color accentColor
|
||||
|
||||
readonly property var sink: S.PipewireService.sink
|
||||
property real volume: sink?.audio?.volume ?? 0
|
||||
property bool muted: sink?.audio?.muted ?? false
|
||||
readonly property string volumeIcon: muted ? "\uF026" : (volume > 0.5 ? "\uF028" : (volume > 0 ? "\uF027" : "\uF026"))
|
||||
|
|
@ -95,14 +93,15 @@ Column {
|
|||
}
|
||||
}
|
||||
|
||||
// Device + stream list
|
||||
// Device + stream list (hidden on lock screen)
|
||||
Column {
|
||||
id: deviceList
|
||||
visible: !S.LockService.locked
|
||||
width: root.width
|
||||
|
||||
// Output devices - only shown when more than one exists
|
||||
Column {
|
||||
visible: root.sinkList.length > 1
|
||||
visible: S.PipewireService.sinks.length > 1
|
||||
width: parent.width
|
||||
|
||||
Separator {}
|
||||
|
|
@ -119,7 +118,7 @@ Column {
|
|||
}
|
||||
|
||||
Repeater {
|
||||
model: root.sinkList
|
||||
model: S.PipewireService.sinks
|
||||
|
||||
delegate: HoverableListItem {
|
||||
required property var modelData
|
||||
|
|
@ -149,11 +148,11 @@ Column {
|
|||
|
||||
// Streams section
|
||||
Separator {
|
||||
visible: root.streamList.length > 0
|
||||
visible: S.PipewireService.streams.length > 0
|
||||
}
|
||||
|
||||
Text {
|
||||
visible: root.streamList.length > 0
|
||||
visible: S.PipewireService.streams.length > 0
|
||||
width: parent.width
|
||||
height: visible ? 24 : 0
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
|
@ -165,7 +164,7 @@ Column {
|
|||
}
|
||||
|
||||
Repeater {
|
||||
model: root.streamList
|
||||
model: S.PipewireService.streams
|
||||
|
||||
delegate: Item {
|
||||
id: streamEntry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue