1
0
Fork 0

[UI] Fixed volume keybinds. Added mute keybind.

This commit is contained in:
Kitteh 2018-10-28 15:35:50 +00:00
parent 9f3d8d9e06
commit 2d3222c724
2 changed files with 11 additions and 3 deletions

View file

@ -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

View file

@ -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
}
}