Persist stream volume when the user commits a change
This commit is contained in:
1 parent
d59bebd7eb
commit
7729f263c0
9 files changed
+46
-9
No files matched your search
@@ -119,7 +119,7 @@ export global ShellBridge {
|
||||
callback sidebar-search-edited();
|
||||
callback page(bool);
|
||||
in-out property <string> fullscreen-stream;
|
||||
callback stream-volume(string,float);
|
||||
callback stream-volume(string,float,bool);
|
||||
callback resized(float,float);
|
||||
}
|
||||
|
||||
@@ -239,7 +239,11 @@ component StreamTile inherits Rectangle {
|
||||
if !root.item.has-frame: Text { text: root.item.status != "" ? root.item.status : ShellBridge.label-stream-waiting; color: Theme.muted; horizontal-alignment: center; vertical-alignment: center; wrap: word-wrap; }
|
||||
}
|
||||
Text { text: root.item.status; color: Theme.muted; overflow: elide; }
|
||||
parity-stream-gain := Slider { minimum: 0; maximum: 1; value: root.item.volume; accessible-label: ShellBridge.label-volume; changed(value) => { ShellBridge.stream-volume(root.item.id,value); } }
|
||||
parity-stream-gain := Slider {
|
||||
minimum: 0; maximum: 1; step: 0.01; value: root.item.volume; accessible-label: ShellBridge.label-volume;
|
||||
changed(value) => { ShellBridge.stream-volume(root.item.id,value,false); }
|
||||
released(value) => { ShellBridge.stream-volume(root.item.id,value,true); }
|
||||
}
|
||||
CommandList { commands: root.item.actions; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user