1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

audio: create and connect volume popup to IPCs

This commit is contained in:
bbedward
2025-07-25 11:24:27 -04:00
parent 1cf252599b
commit 786b8f3fa1
5 changed files with 294 additions and 21 deletions

View File

@@ -128,19 +128,27 @@ Singleton {
target: "audio"
function setvolume(percentage: string): string {
return root.setVolume(parseInt(percentage));
const result = root.setVolume(parseInt(percentage));
root.volumeChanged();
return result;
}
function increment(step: string): string {
return root.incrementVolume(parseInt(step || "5"));
const result = root.incrementVolume(parseInt(step || "5"));
root.volumeChanged();
return result;
}
function decrement(step: string): string {
return root.decrementVolume(parseInt(step || "5"));
const result = root.decrementVolume(parseInt(step || "5"));
root.volumeChanged();
return result;
}
function mute(): string {
return root.toggleMute();
const result = root.toggleMute();
root.volumeChanged();
return result;
}
function setmic(percentage: string): string {