Better icons: device/app icon chains, volume icons, app icon (#2)
This commit was merged in pull request #2.
This commit is contained in:
1 parent
f08f241edb
commit
02b08cb471
21 files changed
+658
-70
No files matched your search
+17
-3
@@ -33,7 +33,13 @@ pub(all) struct Node {
|
||||
media_class : String
|
||||
app_name : String // application.name (streams)
|
||||
media_name : String // media.name (streams)
|
||||
icon_name : String // application.icon-name / device.icon-name
|
||||
/// Icon names PipeWire/the app suggested, best first (application.icon-name,
|
||||
/// media.icon-name for streams; device.icon-name, node.icon-name for devices).
|
||||
icon_hints : Array[String]
|
||||
form_factor : String // device.form-factor: "headset", "webcam", ...
|
||||
bus : String // device.bus: "usb", "bluetooth", "pci", ...
|
||||
app_binary : String // application.process.binary
|
||||
app_id : String // pipewire.access.portal.app_id / application.id
|
||||
volumes : Array[Double] // linear, one per channel; empty = no volume
|
||||
mute : Bool
|
||||
}
|
||||
@@ -51,7 +57,11 @@ pub fn Node::new(
|
||||
description~ : String = "",
|
||||
app_name~ : String = "",
|
||||
media_name~ : String = "",
|
||||
icon_name~ : String = "",
|
||||
icon_hints~ : Array[String] = [],
|
||||
form_factor~ : String = "",
|
||||
bus~ : String = "",
|
||||
app_binary~ : String = "",
|
||||
app_id~ : String = "",
|
||||
volumes~ : Array[Double] = [],
|
||||
mute~ : Bool = false,
|
||||
) -> Node {
|
||||
@@ -62,7 +72,11 @@ pub fn Node::new(
|
||||
media_class,
|
||||
app_name,
|
||||
media_name,
|
||||
icon_name,
|
||||
icon_hints,
|
||||
form_factor,
|
||||
bus,
|
||||
app_binary,
|
||||
app_id,
|
||||
volumes,
|
||||
mute,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user