[UI] Fixed volume keybinds. Added mute keybind.
This commit is contained in:
parent
9f3d8d9e06
commit
2d3222c724
|
@ -14,7 +14,7 @@ MenuItem {
|
|||
implicitHeight: 20
|
||||
|
||||
contentItem: Text {
|
||||
rightPadding: menuItem.arrow.width
|
||||
rightPadding: menuItem.indicator.width
|
||||
text: menuItem.text
|
||||
font.family: notoFont.name
|
||||
opacity: 1
|
||||
|
|
|
@ -374,6 +374,7 @@ ApplicationWindow {
|
|||
property string doubleSpeed: "}"
|
||||
property string increaseVolume: "*"
|
||||
property string decreaseVolume: "/"
|
||||
property string mute: "m"
|
||||
}
|
||||
|
||||
MenuBar {
|
||||
|
@ -582,14 +583,21 @@ ApplicationWindow {
|
|||
onTriggered: {
|
||||
player.command(["add", "volume", "2"])
|
||||
}
|
||||
shortcut: keybinds.cycleAudio
|
||||
shortcut: keybinds.increaseVolume
|
||||
}
|
||||
Action {
|
||||
text: "Decrease Volume"
|
||||
onTriggered: {
|
||||
player.command(["add", "volume", "-2"])
|
||||
}
|
||||
shortcut: keybinds.cycleAudio
|
||||
shortcut: keybinds.decreaseVolume
|
||||
}
|
||||
Action {
|
||||
text: "Mute"
|
||||
onTriggered: {
|
||||
player.command(["cycle", "mute"])
|
||||
}
|
||||
shortcut: keybinds.mute
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue